4 ms·
Why getter and setter methods are evil
- JoeAltmaier 12y agoArticle 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.
- ainiriand 12y agoYou are right, its a flawed idea, in a flawed form.
- CarlMings 12y agoeven 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.
- yegor256a 12y agoThanks for reading :)
- touristtam 12y agoI 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. :) [edit] I am curious about the book.