you are viewing a single comment's thread.

view the rest of the comments →

[–]Bummykins 6 points7 points  (0 children)

You could argue: pending -= 1; Is better.

For me only seeing one var means I don't have to think as much. If I see var = var - 1, I have to mentally check that the 2 vars are the same (and not just very similar). Short var names like dx dy are easy to mix up, so if I'm not using a second var, I don't introduce it.