3 ms·
The title of this post got my hopes WAY up: Code folding? Applying catamorphisms to code? Way cool topic!!! But no, it was about how one specific language and
by raganwald 18y ago
The title of this post got my hopes WAY up: Code folding? Applying catamorphisms to code? Way cool topic!!!
But no, it was about how one specific language and one specific editor have some hints that play well together to hide and show blocks of code. Which is interesting even if you don't use that editor and that language, because it looks like another form of abstracting away some details.
So for the people who use these Miscrosoft-specific tools, how is the argument against code folding different from the argument against extracting code into its own method? It seems to me that if I take a bunch of code and put it in its own method or class, I can move it out of sight, hiding its ugliness and exposition from view.
Is code folding substantially different?
- baha_man 18y ago'...it looks like another form of abstracting away some details...' I think this is the main reason why I don't like it - it's an extra and inferior way of organising code. Automatically generated boilerplate code in ASP.NET is now hidden using partial classes, for example, which I think is an improvement.