Re: Shopping with Accounts

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48319
interpreted = N
texte = ... A I think most people would agree with you on this. I just do it because it's easier for me to keep track, that's all.: c)On Tuesday, March 4, 2003, at 12:15 PM, Donovan wrote:> 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 might > not 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 that > there 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 > naming > conventions.... such as: > • discerning between same names can be confusing when > anylizing/changing > complex 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 > orderfile > names if it works for them. :-) Just sharing my experiences. > > > cheers, > DonovanSigned: Marc Kaiwi ------------------------------------------------------------- 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:

    
  1. Re: Shopping with Accounts (Donovan 2003)
  2. Re: Shopping with Accounts (Kimberly D. Walls 2003)
  3. Re: Shopping with Accounts (Brian Fries 2003)
  4. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  5. Re: Shopping with Accounts (Dan Strong 2003)
  6. Re: Shopping with Accounts (Donovan 2003)
  7. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  8. Re: Shopping with Accounts (Donovan 2003)
  9. Re: Shopping with Accounts (Charles Kline 2003)
  10. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  11. Re: Shopping with Accounts (Clint Davis 2003)
  12. Shopping with Accounts (Kimberly D. Walls 2003)
... A I think most people would agree with you on this. I just do it because it's easier for me to keep track, that's all.: c)On Tuesday, March 4, 2003, at 12:15 PM, Donovan wrote:> 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 might > not 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 that > there 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 > naming > conventions.... such as: > • discerning between same names can be confusing when > anylizing/changing > complex 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 > orderfile > names if it works for them. :-) Just sharing my experiences. > > > cheers, > DonovanSigned: Marc Kaiwi ------------------------------------------------------------- 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/ marc@kaiwi.com (Marc Kaiwi)

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:

[OT] Colored source code in IE? (2007) Secure server question (1997) [WebDNA] CICADA (2009) Almost a there but..bye bye NetCloak (1997) OT: Mobile Phone "mailto:" (2008) Grep to remove all characters except digits? (2002) First postarg not taking in $Commands (1997) Shopping Cart variation... (1997) Using WebCat for product info requests (1997) REPLACE & MAX/STARTAT parameters doesn't work? (2000) WebDNA Windows 5.0 sendmail bug (2003) WebCat2b15MacPlugin - [protect] (1997) new cart IDs being assigned somehow (1997) WebCatalog2 Feature Feedback (1996) Scrape Interest Rates (2005) Searching with a form (2000) Hard Questions ? (1997) PIXO Support (1997) webDNA and ASP pages (1997) Apache SSL and Linux (2002)