3 ms·
> Every time you need to add a code comment you have failed to write clean code that it easy to understand. As far as possible the code should tell you 'what'
by eru 9y ago
> Every time you need to add a code comment you have failed to write clean code that it easy to understand.
As far as possible the code should tell you 'what' it is doing. But pure code alone has a hard time telling you 'why' it does what it does, and an even harder time telling 'why not'?
(Ie 'Why are we using this complicated approach, and not a simpler one?', 'Why can we get away with this simple approach, why don't we have to worry about corner case x?')