in reply to Re^8: Re-blessing || Re-constructing objects
in thread Re-blessing || Re-constructing objects

Well, if your runmode dispatches based on a certain level of authorization, then it should be asking the user "Do you have this authorization?". This is self-documenting and resilient in the face of change. I don't see how reblessing is a better solution.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re^9: Re-blessing || Re-constructing objects

Replies are listed 'Best First'.
Re^10: Re-blessing || Re-constructing objects
by Juerd (Abbot) on Apr 18, 2006 at 15:46 UTC

    I don't see how reblessing is a better solution.

    It's nice in terms of security, grouping, maintenance, and more of that. If you really don't see it, then that is too bad; I don't know how I could explain it better than I already have. And I think that you are unable to convince me as much as I am unable to convince you, so I'm going to spend my time on other branches of discussion.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }