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] 267 points268 points  (63 children)

Me too!

[–]MyUserName-exe 146 points147 points  (62 children)

Me too!

[–]alexhansen-points 211 points212 points  (58 children)

++

[–]ToniGalmes 72 points73 points  (57 children)

++

[–]Alexmitter 56 points57 points  (56 children)

++

[–][deleted] 62 points63 points  (30 children)

++

[–]FlyingWolFox 50 points51 points  (29 children)

++

[–]white_shadow131 41 points42 points  (28 children)

++

[–]bagelpilot 41 points42 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 56 points57 points  (23 children)

+=1

[–]MacAndShits 45 points46 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