Re: Coding Standards - are there any ?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48545
interpreted = N
texte = For whatever it's worth, I am an admittedly non-advanced programmer and I like to write my WebDNA code as literal and deliberate as possible, so that when I read the code it almost sounds like plain english to me:Example: ----------------------------------- Database Header ----> UNIQUEEMAILVERIFIED ----------------------------------- [search db=email_addresses.db&eqVERIFIED=Y] [founditems] [sendmail to=[EMAIL]&from=me@xxx.com&subject=Hello] This is the body of the email. [/sendmail] [/founditems] [/search] -----------------------------------I don't know if that was totally helpful, but I think you get the idea. I prefer to name things according to what they are and what their function is. Kind of simplistic, but it keeps me sane. I've noticed that some folks like to prefix their form-variables with underscores (___FORM-VARIABLE-1), and things of that nature. I can see where it would be useful, but for me, it's a chore enough just to build some of this (to me) damn complex stuff, and the last thing I need is another sub-task to potentially confuse me.That said, to each their own, right? Ok back to work for me. Hope this helped.-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Mon, 10 Mar 2003 16:48:51 -0000 Tom Duke wrote: >Hi all, > >I keep changing my database/field naming conventions to ones that seem more logical. Before I do >this again does anyone have a good set of coding standards/recommendations. > >So far I have used conventions like:- > > F_FIELDNAME > V_VARIABLENAME > R_RECORDID > >or > > fFIELDNAME > vVARIABLENAME > rRECORDID > >etc. > >Thanks >- Tom > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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: Coding Standards - are there any ? (Alan White 2003)
  2. Re: Coding Standards - are there any ? (Terry Wilson 2003)
  3. Re: Coding Standards - are there any ? (Tom Duke 2003)
  4. Re: Coding Standards - are there any ? (Charles Kline 2003)
  5. Re: Coding Standards - are there any ? (Howard Wolosky 2003)
  6. Re: Coding Standards - are there any ? (Kimberly D. Walls 2003)
  7. Re: Coding Standards - are there any ? (Dan Strong 2003)
  8. Re: Coding Standards - are there any ? (John Peacock 2003)
  9. Coding Standards - are there any ? (Tom Duke 2003)
For whatever it's worth, I am an admittedly non-advanced programmer and I like to write my WebDNA code as literal and deliberate as possible, so that when I read the code it almost sounds like plain english to me:Example: ----------------------------------- Database Header ----> UNIQUEEMAILVERIFIED ----------------------------------- [search db=email_addresses.db&eqVERIFIED=Y] [founditems] [sendmail to=[EMAIL]&from=me@xxx.com&subject=Hello] This is the body of the email. [/sendmail] [/founditems] [/search] -----------------------------------I don't know if that was totally helpful, but I think you get the idea. I prefer to name things according to what they are and what their function is. Kind of simplistic, but it keeps me sane. I've noticed that some folks like to prefix their form-variables with underscores (___FORM-VARIABLE-1), and things of that nature. I can see where it would be useful, but for me, it's a chore enough just to build some of this (to me) damn complex stuff, and the last thing I need is another sub-task to potentially confuse me.That said, to each their own, right? Ok back to work for me. Hope this helped.-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Mon, 10 Mar 2003 16:48:51 -0000 Tom Duke wrote: >Hi all, > >I keep changing my database/field naming conventions to ones that seem more logical. Before I do >this again does anyone have a good set of coding standards/recommendations. > >So far I have used conventions like:- > > F_FIELDNAME > V_VARIABLENAME > R_RECORDID > >or > > fFIELDNAME > vVARIABLENAME > rRECORDID > >etc. > >Thanks >- Tom > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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/ Dan Strong

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:

Limit on nested [ShowIf]'s? (1997) Preserving form data (1999) WebDNA error. (2006) problems with 2 tags (1997) Deleting Multiple Database Records based on Checkbox (1998) Slightly OT: [sendmail] help (2003) [SHOWIF AND/OR] (1997) Date outside Orderfile (2006) Emailer (1997) Re:no [search] with NT (1997) Text data with spaces in them... (1997) 5.0 Pricing (2003) Multiple download orders of the same product? (1997) Emailer setup (1997) [WebDNA] Test (2013) Who is John Jakovich? (1999) WebCat cannot handle compatible search parameters? (1997) Running 2 two WebCatalog.acgi's (1996) Email notification to one of multiple vendors ? (1997) iPLanet (2001)