Hi,

> Why is it frowned upon by the way? I've heard 
> such talk before, that's why I
> ask, but I'm not sure of the reasons.

one reason was the shared variables issue on CF 5 and before (concurrent 
requests).

But, another point is that on a shared server you have no way to make sure 
another programmer is not using the same variable name, thus overwriting your 
var.

Finally, in OO architectures, shared scope variables (plus request variables) 
are frowned upon, because they violate encapsulation. I think I remember a 
thread where somebody said that using request variables in a OO  architecture 
should be avoided at all costs... (which in my personal opinion is not true, 
because "at all costs" _never_ makes sense in programming... ;-))

If you have your own CF instance and can make sure that a variable of the same 
is not created anywhere else, you should not have a problem with server 
variables.... as long as you don't do OO that is. ;-)

Best,

Chris



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232897
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to