|
|
|
|
|
by tigershark
3350 days ago
|
|
Regions are just useless visual clutter most of the time.
You can put the methods/fields in the same order without using the regions.
In my experience regions are a very bad practice used only to mask bad design that produced gigantic classes.
The only place where I think they may be helpful is when you are writing a library and your class must be huge because you are implementing for example a Trie or some other collection or some other object pretty complicated that doesn't make sense to divide in smaller classes.
And even in that case I would first try really really hard to split it in smaller entities rather than just having a thousands lines class with some regions around. |
|
Where does the absolutism in the tech industry come from? We are a bunch of individuals who have individual experience and then try to form a view of the world that satisfies our experiences. What about the experiences you haven't had or conceived of? We are constantly rewriting the rules in our head to fit the new experiences we have every day to make sure we are right all of the time. Surely, our current world views are not complete or we would have no room to grow.
Still, I'll take your comment under advisement in case my classes are big, poorly designed non-Tries.