Tuesday, August 7, 2007

Why getters and setters are evil

"Don't ask for the information you need to do the work; ask the object that has the information to do the work for you" is the suggestion to cast away the evil associated with getters and setters as proposed by Allen Holub, JavaWorld.com. Full article is available here.

1 comment:

Jen said...

Cant believe what i learned in college are actually "evil".

Still remember when i first learned how to use get and set methods, the tutor was emphazing the greatness of these methods, hmm should probably send him this article and let him have a read before he pollute another young brain :P