Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java is really not that verbose if steer out of the 25+ years old conventions that were defined to justify expensive proprietary tooling. Leave all fields package scope or public final, so you don't need getters and setters. On JDK21+ use records and pattern matching. Go procedural + lambda, don't be afraid to use static methods. When OO is required, prefer composition over inheritance. Adopt a proper annotation processor library such as autovalue to eliminate remaining boilerplate.


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

Search: