2 ms·
> Comments can add "section headers", while keeping the code flow linear, so I can skim it just like I skim an article. Yes, and decomposition provides an outl
by dragonwriter 7y ago
> Comments can add "section headers", while keeping the code flow linear, so I can skim it just like I skim an article.
Yes, and decomposition provides an outline, which is faster to skim than an article. There's a reason tables of contents are a thing; they let you find wheat you care about much faster than linear text with section headers.
With code, they also have the advantage of allowing you to make use of step-over/step-into debugging.