Re: Shopping with Accounts
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48314
interpreted = N
texte = Marc Kaiwi wrote:> No this is a good example> ... WebDNA always knows what context it's in.:-) WebDNA might know what context it is in... but it mightnot be the one that you think it is in.hmm, Whats not good about my example again? :-)Simply, If you use similarly named vars inside two contexts that use that var name,then this is illegal and your results will be unknown (thus incorrect).> May seem a little confusing at first but just always think of it as > being a local variable or local in scope.> If you need a value from somewhere outside the local scope or way > down in the nest then assign it some name or other.This is a correct statement and is exactly what I was referring to when I said thatthere are ways to code the above to get it to do what you want.However, there are other things Kimberly might want to consider in her namingconventions.... such as:• discerning between same names can be confusing when anylizing/changingcomplex code.• the possibility of having to do work arounds (like the one above)What it boils down to is a personal preference of naming conventions.I'm not going to rip on someone for using the same names as the orderfilenames if it works for them. :-) Just sharing my experiences.cheers,Donovan>>> kind of interesting topic.>>>-- -Donovan Brooke-Administrator of IT /-Assc. Art Director-Creative Services-Epsen Hillmer Graphics-402.342.1169 X297-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Marc Kaiwi wrote:> No this is a good example> ... WebDNA always knows what context it's in.:-) WebDNA might know what context it is in... but it mightnot be the one that you think it is in.hmm, Whats not good about my example again? :-)Simply, If you use similarly named vars inside two contexts that use that var name,then this is illegal and your results will be unknown (thus incorrect).> May seem a little confusing at first but just always think of it as > being a local variable or local in scope.> If you need a value from somewhere outside the local scope or way > down in the nest then assign it some name or other.This is a correct statement and is exactly what I was referring to when I said thatthere are ways to code the above to get it to do what you want.However, there are other things Kimberly might want to consider in her namingconventions.... such as:• discerning between same names can be confusing when anylizing/changingcomplex code.• the possibility of having to do work arounds (like the one above)What it boils down to is a personal preference of naming conventions.I'm not going to rip on someone for using the same names as the orderfilenames if it works for them. :-) Just sharing my experiences.cheers,Donovan>>> kind of interesting topic.>>>-- -Donovan Brooke-Administrator of IT /-Assc. Art Director-Creative Services-Epsen Hillmer Graphics-402.342.1169 X297-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Grep help, please ... (2003)
Shownext from POST (2000)
form data submission gets truncated (1997)
TCP Connect (1999)
variables in [addlineitem] (1998)
Searching multiple Databases (1997)
Multiple Passwords (1997)
newbies to web, spaces in email address (1998)
Shownext never shows next...still (1997)
[TaxableTotal] - not working with AOL and IE (1997)
&fieldsdir=ra truely random?? (2000)
HomePage Caution (1997)
Storing Data (2002)
[username][password] not showing up! HELP! (1999)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
problems with 2 tags (1997)
Electronic Delivery (1997)
WebCatalog NT beta 18 problem (1997)
Concealing WebCatalog in the URL (2000)
[WebDNA] [listallcontexts] ??? (2016)