|
> Those are the kind of features that are sorely lacking in Java, and that means huge, bloated code bases. No, it doesn't. If you can't write concise Java, you're doing something wrong. And if you can't read code well, go practice some more. Disclaimer: I'm an outlier. I rarely use 3rd party libs, rarely write with anyone else, etc. |
Actually, let's not. To paraphrase a minor celebrity of programming, life is too long to be good at reading every variation of boilerplate. Java is essentially hostile to small functions and parametrization, as having any semblance of inner or anonymous functions will require you to define a class at least, or an interface somewhere else, scattering your code unnecessarily, and you'll probably just end up repeating the code because it's just not worth the effort to do it. Don't believe me? Why do you always have to .open() and .close() your any port-like thing manually? That's a solved problem, you know?