Why getters and setters are terrible
The Eric Normand Podcast - En podcast av Eric Normand
Kategorier:
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.
