Hacker News new | ask | show | jobs
by dmarchand90 832 days ago
Clean code talks about this very well. Like all things it's a matter of doing it write or wrong.

The checklist includes:

1 are you using comments to manage obfuscated code? I.e. the comment isn't the problem it's the spaghetti code it makes the person feel entitled to write after

2 can the code just be a function with a clear name

3. Is the comment a non comment ?

<some others I forget the book is a great read>

That said. Plenty of times you need a good comment.