in reply to Re^3: The Accessor Heresy
in thread The Accessor Heresy
Your measurement of code complexity is deceiving. For each property, the only additional code is the new method, which is trivial. With more methods on an object, the overhead as a percent would shrink. The whole idea behind OO design is that it is intended for scalability, not that it can implement trivial things trivially.
All at the expense of performance and for what purpose again?Expandability, for one. If you haven't anticipated all the functions that will be handy for your properties, you're stuck implementing them as additional operate_on_Doohickey type procedures unless you change all the Doohickey-related methods. Your Doohickey can never be a real
I'm not saying it's always the way to go — I'm sure it's often not — but it is something to consider. You seem to be saying that it's never the way to go.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: The Accessor Heresy
by sauoq (Abbot) on Nov 28, 2005 at 19:59 UTC | |
by Roy Johnson (Monsignor) on Nov 28, 2005 at 20:36 UTC | |
by sauoq (Abbot) on Nov 28, 2005 at 22:19 UTC |