DEV Community

Discussion on: Code Smell 35 - State as Properties

Collapse
 
mcsee profile image
Maxi Contieri

I agree

Both setters and getters should be avoided most of the time.

People use them thinking they are protecting their implementation but is exactly the opposite. Next Sunday's code smell is related to that