|
|
|
|
|
by doctor_eval
1353 days ago
|
|
Java the language is fine, but Java has - or used to have? - so much idiomatic boilerplate - worst of all IMO was the ridiculous imperative to write getters and setters for every field, but there was also a plethora of very broad interfaces - all of which required all kinds of boilerplate and/or delegation to be able to use. Don’t even get me started on the frameworks. Maybe Java has changed in the last 5 years, but idiomatic Go has much, much, much less boilerplate than the idiomatic Java I used to know. |
|
The worst part is that some libraries use getters as convention. e.g. Jackson (by default) uses getter methods to decide what to serialize.