Re:John Carmack on Inlined Code
by mnarayan01 on Friday September 26, 2014 @07:06PM
(#8375358)
The #region directive in c# is pretty awesome for this and I really wish every language had something similar. Sadly I'm not sure there's a great way to do it for e.g. ruby and obviously the situation would be even worse for homoiconic languages.
[ Parent
| on HN ]
Not everyone likes #region
http://blog.codinghorror.com/the-problem-with-code-folding/
Man, he's lucky he's never had to deal with a 12k lines in the main executable. Regions are a godsend there.
Re:John Carmack on Inlined Code
by mattmanser on Saturday September 27, 2014 @09:26AM
(#8376957)
I used to use them, but now I view #regions as a massive code smell.