software design

Are setters evil?

In the interesting blog post Greg Jorgensen have written about getters and setters and why using them is not a good practice.

"Do not use getters and setters" looks like a hastily advise, but its meaning is very important and it is "do not break encapsulation", which moves us to the question what the encapsulation is.

Syndicate content