20

I never write comments but I probably should

Comments
  • 7
    As you get more experience creating new projects you’ll realize you shouldn’t have to write comments. If a piece of code is hard to read and you can’t make the code more declarative, that’s when your tests come in as a source of explanation.
  • 3
    Time is the teacher
  • 4
    "A comment is a failure to express yourself in code. If you fail, then write a comment; but try not to fail."
    - Robert C. Martin
  • 1
    3rd line should be "still understood everything"
  • 0
    I know right
  • 0
    But when someone else writes code and asks you if it's good or how they could make it better, the awkward time it takes to read and understand just what it's trying to do. The awkward time lasts longer with how bad the code is. That's when you want an understandable comment

    Although, with code like that I doubt the comment would make sense either.
Add Comment