3 ms·
>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
by runT1ME 7y ago
>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.
- alasdair_ 7y agoI 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/ https://projectlombok.org/) that hides almost all of the repetitive stuff completely.