3 ms·
> 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. Thes
by avmich 6y ago
> 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.
- bobthepanda 6y agoAlso, 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.
- nitrogen 6y agoFrameworks like Spring/Spring Boot kind of force that as well with their runtime creation of proxy classes.
- Scarbutt 6y agoI'm surprised you didn't mention the Streams API.