Re:On Comments in Code
by nicoburns on Tuesday June 15, 2021 @05:35PM
(#27521824)
That then makes the code non-linear, which IMO makes it a lot less readable in most circumstances.
[ Parent
| on HN ]
Re:On Comments in Code
by isbvhodnvemrwvn on Tuesday June 15, 2021 @05:45PM
(#27521909)
It depends, if it needed a comment in the first place it likely was at a different (likely lower) level of abstraction than the rest of the code in that method.
Yes, but that doesn't mean it doesn't benefit from being inline. I love being able to skim over the paragraph-comments to get the big picture and then dip into the details without having to jump to another file / part of the file and lose my context.