3 ms·
I like to use comments extensively, even if it’s just to visually separate blocks of code in my IDE. A bit more spacing simply feels cleaner to me.
by rossant 9mo ago
I like to use comments extensively, even if it’s just to visually separate blocks of code in my IDE. A bit more spacing simply feels cleaner to me.
- matt_kantor 9mo agoWhy not use blank lines? (I suspect the answer might be "my code formatter deletes them", which is a damn shame.)
- bonesss 9mo ago.Net languages have ‘regions’ that can collapse & nest, providing a high level narrative of file organization (and, in practice, display most files in a clean collapsed view).
- zahlman 9mo agoI used to do that (and it's part of why I put a double line between functions and classes). But over time I started to feel like those were the points where I should just refactor. (If the function can't be cleanly cut at those joints, in turn, I take that as a sign that the logic needs to be disentangled first.)
- rossant 9mo agoI do it, but I also like to use headers.