33

I comment my code. Thats considered a bad practice between some coders

Comments
  • 3
    So do I... IMO, It's better than causing a prod issued because you forgot about one tiny little bit critical detail/quirk...
  • 2
    @yzhea seems you got company 😉
  • 1
    But how do you comment it?
  • 3
    I like comments, but experience has thought me to keep them terse.

    It's important to favour readable code.

    Comments don't refactor!
  • 1
    @Sneakback I don't know about OP, but here's an example I had to comment:

    //This copies the values in a into b; logic depends on the actual implementation of A used
    a.Copy(b);

    Eventually I think I did rename the method to CopyTo but that took awhile... (I wasn't the one who wrote the original method)
  • 6
    I hope you don't mean

    /*

    your code…

    */
  • 4
    Comments are good. Comments written as haikus are better.
  • 4
    Yeah, not a fan of most comments. Would prefer to refactor the code to make more sense/be more readable.

    Problem is that sometimes comments lie; code never lies tho.
  • 2
    Well if you just comment what the code does its bullshit cus thats like repeating yourself..😅
  • 5
    @Vikram haha thanks for the mention :P
Add Comment