in reply to Re^5: Re-blessing || Re-constructing objects
in thread Re-blessing || Re-constructing objects
This sounds like compartmentalizing the aspects that might vary (method results) into a seperate object (authobj). Then, if you need to change how something works, you swap out the authobj for another one.
That sounds like more work to me, and for what? The method variations still have their own spaces, seperate by class lines, but you're suggesting using multiple objects where I only need one. If I needed authobjects for other types of objects I could see that being a compelling argument (design the piece, then plug in where needed). But it seems like a smaller change to start using a different name (rebless) for an object than to throw away part of it, create a new part, and plug it into the hole.
For clarification of my motivation, I'm not asking if this IS possible (I know it is, conceptually and in practice) but why ELSE it might be desirable (or undesirable.) I'm certainly not afraid to change my ways- if I was I wouldn't be re-implementing my current project with OO code after months of development. I'm also open to accepting I am misguided- but it takes a clear argument tthat puts me back on course to convince me.
"One is enough. If you are acquainted with the principle, what do you care for the myriad instances and applications?"
- Henry David Thoreau, Walden
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Re-blessing || Re-constructing objects
by dragonchild (Archbishop) on Apr 18, 2006 at 12:11 UTC | |
by blogical (Pilgrim) on Apr 18, 2006 at 14:28 UTC | |
by dragonchild (Archbishop) on Apr 18, 2006 at 15:19 UTC | |
|
Re^7: Re-blessing || Re-constructing objects
by perrin (Chancellor) on Apr 18, 2006 at 11:22 UTC |