Hacker News new | ask | show | jobs
by robgough 5550 days ago
Isnt there a danger that someone else working on your code might not respect that rule (or dare I say it, but maybe you're in a rush one day) and you don't update the comment when you update the class.

Now you've got comments saying in correct things, and you risk all sorts of confusion.

The same rule applies to commenting methods in code really, you don't comment what the code does exactly - just what the intention of the code is.

1 comments

The time spent on keeping the code readable is never wasted :) Obviously, every developer must adopt this habit.