3 ms·
The latter came from Linus, so yeah it's, erm, opinionated (and what you read as "rage-y" is actually humorous). His point still stands though - if you ever ne
by huhtenberg 6y ago
The latter came from Linus, so yeah it's, erm, opinionated (and what you read as "rage-y" is actually humorous).
His point still stands though - if you ever need one too many indent levels, the code could almost certainly use simplification.
- watwut 6y agoIn no way it is like "trying to define the value of PI to be 3". That is just nonsense. > The answer to that is that if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program. Maybe in context of old C, but in java you have two nestings just for being in class method. So as a general point, it does not stand anyway.
- bzbz 6y agoAnd screens are bigger than they used to be, so you conveniently have more tabs to make up for it. I think it evens out
- watwut 6y agoHow does bigger screen imply that three levels of nesting are bad programming? It just does not.
- bzbz 6y ago> Maybe in context of old C, but in java you have two nestings just for being in class method. So as a general point, it does not stand anyway. In reference to your above point. You’re saying modern Java makes you start out at 2 levels of indentation. I’m saying your modern monitor’s width compensates.
- watwut 6y agoWhat does that compensation have to do with whether nesting of level 3 is fundamentaly wrong code or not?