82
Dsigner
8y

Writes program.
Doesn't comment code.
*Yeah totally gonna remember everything* 🕶

*5 weeks later*
what the heck was I writing.? 🙄😥😭

Comments
  • 2
    It's better than: "who the fuck wrote this shit?!?!.... ohhh it was me!"
  • 2
    Code is supposed to be self explanatory, if it needs comments something is probably wrong
  • 3
    Or write tests... One look at the test name/description and you should know what the code is supposed to do.
  • 1
    @tass - I usually let my code do the explaining unless I need to do some magic for a very specific scenario. Then I try to at least tell future me why I did it that way. 😬
  • 0
    We stick to naming conventions that spell out what the variable is for, and what the method is upto. Strictly, no comments in code.
  • 0
    the code should show how it's done. The comments should show why!
  • 0
    Or create exams... The expected behavior of the code should be immediately apparent from the test name and description.
Add Comment