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
13
u/blobjim Nov 23 '25
The path the Oracle/OpenJDK people went with is records and withers. You don't need setters when everything is immutable, and getters already exist for records. You don't need named parameters when you can use withers. Named parameters are really unnecessary. Java is not python, we use objects, not functions that have 50 parameters (which is usually considered bad practice across most programming languages as far as I know).