DEV Community

Discussion on: Get, set... STOP!

Collapse
 
vlasales profile image
Vlastimil Pospichal

I am a getter and a setter hater. I hate anemic domain model. I prefer immutable objects with no setters. The same problem with getters. I put behavior into object and I am happy.

Tell, don't ask!