XpdWiki

FrontPage
RecentChanges
FindPage
PageIndex
UnusedPages
UndefinedPages
XpApprentices

Set your name in
UserPreferences



Referenced by
DafyddRees
XtcProjectProposa...
PassSomethingIn
LogicIsTheEnemy
ObjectOrientedMyt...




JSPWiki v2.0.52


GettersAreEvil


Difference between current version and version 17:

Line 6 was replaced by line 6
- My take would be that with getters you are being informed of an objects innards. It comes down to method naming really - have the function of a getter, just call it something that fits with the business function (better still pass the object about - something to do with Visitors I'm sure...) - like you didn't pull it apart and it is nice and OO. --DanPollitt
+ My take would be that with getters you are being informed of an objects innards. It comes down to method naming really - have the function of a getter, just call it something that fits with the business function (better still pass the object about - something to do with [Visitor]s I'm sure...) - like you didn't pull it apart and it is nice and OO. --DanPollitt
At line 37 added 2 lines.
+ Be careful, though, not to get confused: ''getters'' are evil, but getters are not the only kind of ''accessor''.
+

Back to GettersAreEvil, or to the Page History.