3 ms·
Now I like regions. They force programmers (by that I mean other people of course - my code is perfect ;) to at least apply some order to the code. If I want t
by bdfh42 18y ago
Now I like regions.
They force programmers (by that I mean other people of course - my code is perfect ;) to at least apply some order to the code. If I want to review (say) the update method for a form I do not want to have to search through a mishmash of private declarations, methods servicing form control events, locally declared classes etc. etc.
OK - Mr Atwood might have a point for really simple classes but when the code runs to a screen or two a little order helps a lot.
- cstejerean 18y agoordering code is not the same as hiding code. Perfectly fine to throw in some comments to provide hints to readers as to what this section does, but providing hints to the editor and having the editor automatically HIDE the code seems wrong.
- j2d2 18y agobut when the code runs to a screen or two a little order helps a lot. So... all the time? If you're not writing pages of code, you might be leveraging someone else's pages and pages of code.