Hacker News new | past | comments | ask | show | jobs | submit login

> I'm honestly never quite sure what people mean by "verbosity" in Java.

Java improved with "var" keyword (use with caution!) and introduction of records. These are not the only code-shortening features (there are e.g. interface methods, diamond operator, lambdas, convenience "of(...)" methods, even "fluid style"), but they, used well, can really reduce verbosity.




Also, a lot of verbosity in Java came from people going off the rails with design patterns to hide crap multiple levels deep in a file with 5+ words in the class name.

If you have a hammer everything’s a nail.


Frameworks like Spring/Spring Boot kind of force that as well with their runtime creation of proxy classes.


I'm surprised you didn't mention the Streams API.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: