Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.
Patrick Calahan
Unregistered
|
|
The point that the author seems to be awkwardly stumbling towards is simply that encapsulation is good. An object should expose the smallest number of data and behaviors necessary to fulfill its contract with the outside world.
Bean properties are a very useful tool in toward this end, and like any tool, they can be over- or mis-used. But juvenile hyperbole like "Getters and setters are evil" really does nothing except spark lengthy, pointless bickering on message boards like this.
If that's the author's true intent, my hat's off to him.
|
|
0 registered and 1 anonymous users are browsing this forum.
Moderator:
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Topic views: 6390
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5