News for hackers. Stuff that matters.
Re:Reducing technical debt by valuing comments as much as code by watwut on Wednesday February 01, 2023 @04:37AM (#34608341)
> I think anyone who is capable of writing clear comments is also equally capable of writing clear code.

Imo, first, they are two different skills. And second, sometimes it is easy to write down what I am trying to achieve, but hard to achieve it with clear code. And other times it is vice versa - easy to write the code and hard to put it into words.

Re:Reducing technical debt by valuing comments as much as code by Arch-TK on Wednesday February 01, 2023 @05:44AM (#34608839)
It's never easy to achieve something with clear code (unless you are writing a hello world program) but it is a skill you can practice and which will pay off more than any comment. At the end of the day, a comment which clearly explains your reasoning and intentions won't help prevent bugs which have an increased likelihood of occurring in unclear code.