Why getters and setters are terrible
The Eric Normand Podcast - Een podcast door Eric Normand
Categorieën:
Getters and setters kick the domain modeling can down the road. They leave the real design work to some other part of the code. They don’t do enough to protect the semantic integrity of the object. They’re terrible.