Hacker News new | ask | show | jobs
by watwut 2024 days ago
In 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.

1 comments

And screens are bigger than they used to be, so you conveniently have more tabs to make up for it. I think it evens out
How does bigger screen imply that three levels of nesting are bad programming? It just does not.
> 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.

What does that compensation have to do with whether nesting of level 3 is fundamentaly wrong code or not?