News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by runT1ME on Wednesday December 04, 2019 @02:05PM (#21705752)
>The boilerplate often helps when reading unfamiliar code

I don't believe this to be true at all, especially for large code bases. Often the people who support this position have not worked on 100k, 500k, 1m LOC applications I've found.

Boilerplate makes it much more difficult to read and scan large swatehs of code. I think when people say boilerplate 'helps', they often noticing a correlation between the fact that many strongly typed systems happen to have excess boilerplate. I believe it's the typing that helps, not the boilerplate.

Re:Generating a Java program with 90% less code by alasdair_ on Wednesday December 04, 2019 @03:24PM (#21706513)
I agree on the strong typing note.

That being said, IntelliJ's IDEA is fantastic at hiding a lot of the boilerplate in Java (like getters and setters and all those import statements at the top of the file) and modern Java is FAR FAR better about being less verbose than it was in 1.0

Java also has Lombok (https://projectlombok.org/) that hides almost all of the repetitive stuff completely.