Re:Please, kill your darlings
by bradlenox on Tuesday March 08, 2016 @11:27AM
(#11246251)
I agree. Someone's "darling" code might be a truly innovative or unique way of solving a problem, and providing enough commentary should help avoid the problems the author warns about.
[ Parent
| on HN ]
It's amazing, their whole complaint is solved by proper software development practices - Comment your code.
Re:Please, kill your darlings
by prodigal_erik on Tuesday March 08, 2016 @12:52PM
(#11247007)
Code that's clear enough not to need a comment is better than code that has a comment. Comments can be outdated or mistaken and they consume screen real estate.
You still need to document intent. No code is self documenting.
In some cases, naming may be sufficient to communicate intent.
To be fair: What is proper practice, is far from what is common practice
Re:Please, kill your darlings
by TTPrograms on Tuesday March 08, 2016 @11:35AM
(#11246310)
Not to mention it may be a performance optimization.