2 ms·
> comments are code smell [paraphrasing] Good news: there are kinds of extremely useful comments that do not repeat the code (your comments should not repeat t
by d0mine 4y ago
> comments are code smell [paraphrasing]
Good news: there are kinds of extremely useful comments that do not repeat the code (your comments should not repeat the code). Comments are to express context/intent behind the code: the "why", the high level "what", and almost never the exact "how" (read code for that).
It looks like you only ever encountered the "how" comments. No amount of code refactoring would get you the "why" (context) comments.