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 ----> UNIQUE
EMAILVERIFIED-----------------------------------[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:
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:
Security Question (1997)
[WebDNA] [OT] ImageMagick or similar (2015)
Sorting by date (1997)
Nesting format tags (1997)
RE: OK, here goes... (1997)
Showif = stumped? (2001)
OT-listserver stuff -WAS-webcat method for waiting specific amount of time? (2000)
Search Philosophy (2001)
Emailer help....! (1997)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
Uploading Files (2000)
No incentive ... (2000)
no global [username] or [password] displayed ... (1997)
can WC render sites out? (1997)
Re:quit command on NT (1997)
Moving files from one server to another... (2001)
OT - asp snippet similar to [!][/!] (2003)
Running _every_ page through WebCat-error.html (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Questions about maximum (1999)