Curious to hear about the things that helped improve your programming ability.

  • bigbluealien
    link
    fedilink
    162 years ago

    Stage 2, “why does this code have nothing to do with the very detailed comments?”

    • Traister101
      link
      fedilink
      15
      edit-2
      2 years ago

      Always comment the why, not the what/how. Bonus of doing this is you only need to update the comments when the why changes

    • Savaran
      cake
      link
      fedilink
      42 years ago

      If the comments don’t match the code then someone failed to properly review it.

    • @[email protected]
      link
      fedilink
      12 years ago

      Lol. That’s why we comment with “why”, rather than “what”. The answer to “what the duck where we even thinking?” usually doesn’t need updated until the commented code goes away.