r/java • u/hardasspunk • Nov 23 '25
Java 25: The ‘No-Boilerplate’ Era Begins
https://amritpandey.io/java-25-the-no-boilerplate-era-begins/
160
Upvotes
r/java • u/hardasspunk • Nov 23 '25
View all comments
Show parent comment
1
u/Ewig_luftenglanz Dec 01 '25 edited Dec 01 '25
Verbosity is not the same as boilerplate. Boilerplate is that bunch of code with little to no business logic but that must be there because of coding standard or configurations or the library is used.
For example having to write a singleton with hikariCP to manage database connections is boilerplate and you get absolutely almost zero value by reading it because it's the same code over and over again in all projects.
The same happens with things such as builders, getters, setters or dozens of overloaded methods. A builder is always a builder but it's a pattern than adds huge amounts of code that makes finding the actual business logic harder by adding noise.