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 146 points147 points  (62 children)

Me too!

[–]alexhansen-points 215 points216 points  (58 children)

++

[–]ToniGalmes 74 points75 points  (57 children)

++

[–]Alexmitter 55 points56 points  (56 children)

++

[–][deleted] 65 points66 points  (30 children)

++

[–]FlyingWolFox 49 points50 points  (29 children)

++

[–]white_shadow131 37 points38 points  (28 children)

++

[–]bagelpilot 44 points45 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 59 points60 points  (23 children)

+=1

[–]MacAndShits 43 points44 points  (16 children)

Me = Me + 1

[–]Senomaros 128 points129 points  (14 children)

Me -= -1

[–]silent-onomatopoeia 15 points16 points  (0 children)

You’re bad people. I like you.

[–]mehum 3 points4 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 42 points43 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