Alan
10/05/2022, 11:10 AMVARIABLES.foo
and var foo
within a function (which I think is the equivalent of LOCAL.foo
?) and within that function I assign foo a value using foo = 'test'
would I be correct in thinking it'd use the local variable ?thisOldDave
10/05/2022, 11:28 AMTim
10/05/2022, 11:53 AMAdam Cameron
Adam Cameron
Adam Cameron
Jim Partin
10/05/2022, 1:41 PMjcarp
10/05/2022, 10:10 PMAdam Cameron
Adam Cameron
salted
10/06/2022, 1:04 AMsalted
10/06/2022, 1:04 AMsalted
10/06/2022, 1:05 AMseancorfield
Adam Cameron
this
, variables
, arguments
and local
. One needs to actively quality this
, I seem to recall.
One's framework should internally deal with form
/ URL
/ CGI
/ cookie
etc - stuff coming in that represents a request - so there should be no need to ever references those. There is no need to use the request
scope.
application
-scope / server
-scope / session
-scope should only be referenced in application lifecycle methods: being passed into objects that have their own local references to them (eg: via DI).
Off the top of my head I dunno enough about scopes used in threads and other miscellany, but I would only scope those 1) if one actually needs to; 2) to disambiguate from the context-specific local scope.Adam Cameron
Alan
10/06/2022, 8:06 AMJim Partin
10/06/2022, 2:42 PM