[WebDNA] Anyone use this coding style for readability...

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105460
interpreted = N
texte = Here's a simplified example: [text secure=T]customer_id_undefined?="[c_id]"="[raw][c_id][/raw]"[/text] [showif [customer_id_undefined?]]Customer id is not defined.[/showif] I find this question mark condition naming improves readability rather than having: "[c_id]"="[raw][c_id][/raw]" throughout my code. It also "DRY"s it up. Any pitfalls to this that you can see? Thanks, Bill Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Anyone use this coding style for readability... ("Terry Wilson" 2010)
  2. Re: [WebDNA] Anyone use this coding style for readability... (Kenneth Grome 2010)
  3. Re: [WebDNA] Anyone use this coding style for readability... (Govinda 2010)
  4. [WebDNA] Anyone use this coding style for readability... (William DeVaul 2010)
Here's a simplified example: [text secure=T]customer_id_undefined?="[c_id]"="[raw][c_id][/raw]"[/text] [showif [customer_id_undefined?]]Customer id is not defined.[/showif] I find this question mark condition naming improves readability rather than having: "[c_id]"="[raw][c_id][/raw]" throughout my code. It also "DRY"s it up. Any pitfalls to this that you can see? Thanks, Bill William DeVaul

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:

Trouble with [Math] (1998) writing db to disk (1997) popups, netscape vs explorer (1997) Dummy Credit Card Number for debug? (1997) Summing fields (1997) [WebDNA] Webdna and CMS (2012) shipcost (1997) WC2.0 Memory Requirements (1997) [OT] Appropriate Signature??? (2003) [addfields] bombing 5.0 (2003) [ShowCart] and GET vs. POST (1997) Next (1997) WebTEN vs webSTAR (1998) Frames and WebCat (1997) Security Issues and WebCommerce Solution (1997) [WebDNA] WebDNA future (2010) What am I doing wrong? (2000) WebCatalog/Mac 2.1b2 New Features (1997) TaxTotal Problem (1997) Re:WebCatalog/WebMerchant III (1998)