Re:Want cleaner code? Use the rule of six
by thebackup on Monday September 26, 2022 @12:38AM
(#32979489)
Agreed. A comment can also explain things that a function name cannot.
Iām all for splitting code into paragraphs with a well written comment above each.
Of course I also extract functions, but only when there are obvious benefit, like removing repetition.
[ Parent
| on HN ]
There are no comments on this comment yet.