Bill is a pro grammer

Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev – 699 points –
95

You are viewing a single comment

x += 1; // Increases x by one

// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction

Wait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here

Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.

That's what it used to do.
But it was a bug, and the code has been fixed.

...Years later
x += config.increment; // Increases x by one

"""
config.yaml
increment: -2
"""

x++; // Move X position forward by one

There, I made that kind of comment more useful!

x++; // Set x to the incrementation of the value of x
Much better.