in reply to Re^6: Re-blessing || Re-constructing objects
in thread Re-blessing || Re-constructing objects
What does this mean? Well, under your proposed system, it means that by fixing a bug in how User::Superman behaves, you might have changed the behavior of User::Anonymous. I'm pretty sure you would agree that this is undesirable.
The solution is to isolate the part that changes. Every user needs a set of authorizations, but that set (as a whole!) will change. So, isolate (or encapsulate) the bit that changes.
It is a tiny bit more upfront work. Yet, you will discover that you have more capabilities to the system than if you gone with your system. It's a bit of a leap of faith, but I hope you will trust me and be willing to make it, for your sake.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Re-blessing || Re-constructing objects
by blogical (Pilgrim) on Apr 18, 2006 at 14:28 UTC | |
by dragonchild (Archbishop) on Apr 18, 2006 at 15:19 UTC |