I tend to scope these, it is not out of worry of me not knowing what I am 
referencing or even of someone else coming in and not knowing. I think it is 
more of just out of habbit and it just gets typed. I do know at one time I 
came across a prior developers work who would be in a <cfoutput 
query="myquery"> and they would start referencing things out of other scopes 
but they never did prefix any variables. It added some time to debuging a 
problem when their query was just SELECT * FROM MYTABLE.
 A lot of the things I do in regards to scoping are usually direct results 
of having to debug someone elses code where no scoping was done at all. This 
made me over time realize I am probably better off typing things out more 
times than not, just so it avoids confusion when never knowing the skill 
level or mindset of whoever it is coming in after me.

 On 5/9/05, Adam Haskell <[EMAIL PROTECTED]> wrote: 
> 
> So me scoping myQuery.varname is essential in a <cfoutput
> query="myQuery"> block? I disagree but I know people think
> differently... I do agree with the url. or form. or cookie . though in
> many cases it could be coming from different places so scoping those
> are good. If you understand your current context you should not have
> to scope...unless you are worried about understandability....
> 
> Adam H
> 
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:11:2556
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/11
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:11
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to