3 ms·
Yes, I personally find inheritance an anti-pattern, and with immutable objects you don't need both getters or setters. Unfortunately, inheritance is deeply in
by nine_k 7y ago
Yes, I personally find inheritance an anti-pattern, and with immutable objects you don't need both getters or setters.
Unfortunately, inheritance is deeply ingrained into many libraries and standard classes, though it has been replaced by interfaces in most standard APIs.
Yes, the boilerplate culture is a problem, not of the language but of the ecosystem :-\
You can stay reasonably away from it in many cases with modern libraries, though.