Re:Why getter and setter methods are evil
by touristtam on Wednesday October 08, 2014 @11:22AM
(#8427349)
I don't see the point of having a set of accessors on a Ball object from the point of view of a Dog object. It is really up to the programmer to have method names that makes sense in the first place. I don't see how a dog.Weight() makes more sense than the convention dog.GetWeight().
Never the less, I am now intrigued by the book mentioned. :)
Re:Why getter and setter methods are evil
by JoeAltmaier on Wednesday October 08, 2014 @09:53AM
(#8426845)
Article says not talking semantics, but in examples, other than changing the names, nothing changed. Didn't read it all but not following after first 5 pages so gave up.
Re:Why getter and setter methods are evil
by CarlMings on Wednesday October 08, 2014 @10:18AM
(#8426966)
even though I do not agree with your thought, I do find the article somewhat useful, in content of the example and the reference book about the Object Orientated Programming.
Never the less, I am now intrigued by the book mentioned. :)
[edit] I am curious about the book.