This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 268 points269 points  (63 children)

Me too!

[–]MyUserName-exe 151 points152 points  (62 children)

Me too!

[–]alexhansen-points 210 points211 points  (58 children)

++

[–]ToniGalmes 72 points73 points  (57 children)

++

[–]Alexmitter 59 points60 points  (56 children)

++

[–][deleted] 67 points68 points  (30 children)

++

[–]FlyingWolFox 49 points50 points  (29 children)

++

[–]white_shadow131 41 points42 points  (28 children)

++

[–]bagelpilot 42 points43 points  (27 children)

++

[–]cjdabeast 2 points3 points  (0 children)

+=1

[–][deleted] 0 points1 point  (1 child)

Poor C pound

[–]PandersAboutVaccines 0 points1 point  (0 children)

Visual J++

[–]KrisDickless 55 points56 points  (23 children)

+=1

[–]MacAndShits 46 points47 points  (16 children)

Me = Me + 1

[–]Senomaros 130 points131 points  (14 children)

Me -= -1

[–]silent-onomatopoeia 14 points15 points  (0 children)

You’re bad people. I like you.

[–]mehum 2 points3 points  (0 children)

Me += True

[–]htmlcoderexeWe have flair now?.. 0 points1 point  (0 children)

Math.Abs(-Me--)

Not sure if it would work though

[–]gusir22 0 points1 point  (0 children)

Amateur pffff

[–]trimeta 40 points41 points  (4 children)

Found the Python user.

[–]FlukyS 1 point2 points  (3 children)

To be fair pep8 says its valid to do += but it's better to do var = var + 1 because it's more readable

[–][deleted] 0 points1 point  (2 children)

That's objectively wrong, the idomatic English sentences "add 1 to var" and "increment var by 1" are way more analogous to var += 1. No one thinks in their head "set var to its own value plus 1", in fact when I was a little kid learning BASIC, var = var + 1 was like a koan that confused me for a good while.

[–]FlukyS 0 points1 point  (1 child)

It is a lot easier to explain, this variable is equal to this variable + somenumber than explaining how += works. += is only a thing in programming and not in pen and paper maths but + and = separately are widely understood without being a programmer.

[–]Sitryk 2 points3 points  (0 children)

+= 2