good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Falling for the same trap - since 1942by Aristotle (Chancellor) |
on Jul 15, 2003 at 08:34 UTC ( [id://274303]=note: print w/replies, xml ) | Need Help?? |
To me, session objects are great and I'm happy to use them, but it's important to remember that a session object, like any object, should be limited in scope to what's it's trying to conceptually represent. That is pretty much the point. I use global variables all the time, too, you know. :-) But they're limited to storing truly global state. So should be session objects. Sigletons are a useful pattern as well; but the same cautions apply. Just like with globals, singletons, or (in another context) gotos, the problem is not in technique/tool itself, and more in how people commonly use them. Makeshifts last the longest.
In Section
Meditations
|
|