Re: Clean source code

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69196
interpreted = N
texte = How about using functions for your code? That way you can create libraries that you can reuse and the [return] feature works extremely well for getting rid of extra spaces. Laters, Olin -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Dan Strong Sent: Monday, July 23, 2007 8:47 AM To: WebDNA Talk Subject: Re: Clean source code Matthew, Yes, that's exactly what I'm talking about. I will give your solution a try. Thanks, -Dan On Mon, 23 Jul 2007 08:54:33 -0400 Matthew A Perosi wrote: > Dan, > > Are you talking about finding a good way to remove all the blank lines >that are created in the HTML by every line of WebDNA code? If so, then here's what I do: > > When I have a block of code that will create many blank lines (like a >loop or founditems) I will put "[text]garbage=" at the beginning of the >block and then "end garbage[/text]" at the end of the block. This will >hide all blank spaces in my final HTML. However, it also hides output, >so I have to create a [finaloutput] variable inside the code block. I >keep adding my results to that [finaloutput] variable and then after the loop is completed I show that [finaloutput] variable. This technique has sped up a lot of my heavily processed pages. > > ----------------- > Matthew A Perosi ------------------------------------------------------------- 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: Clean source code ( "Olin Lagon" 2007)
  2. Re: Clean source code ( "Dan Strong" 2007)
  3. Re: Clean source code ( Matthew A Perosi 2007)
  4. Clean source code ( "Dan Strong" 2007)
How about using functions for your code? That way you can create libraries that you can reuse and the [return] feature works extremely well for getting rid of extra spaces. Laters, Olin -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Dan Strong Sent: Monday, July 23, 2007 8:47 AM To: WebDNA Talk Subject: Re: Clean source code Matthew, Yes, that's exactly what I'm talking about. I will give your solution a try. Thanks, -Dan On Mon, 23 Jul 2007 08:54:33 -0400 Matthew A Perosi wrote: > Dan, > > Are you talking about finding a good way to remove all the blank lines >that are created in the HTML by every line of WebDNA code? If so, then here's what I do: > > When I have a block of code that will create many blank lines (like a >loop or founditems) I will put "[text]garbage=" at the beginning of the >block and then "end garbage[/text]" at the end of the block. This will >hide all blank spaces in my final HTML. However, it also hides output, >so I have to create a [finaloutput] variable inside the code block. I >keep adding my results to that [finaloutput] variable and then after the loop is completed I show that [finaloutput] variable. This technique has sped up a lot of my heavily processed pages. > > ----------------- > Matthew A Perosi ------------------------------------------------------------- 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/ "Olin Lagon"

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:

RE: Include (1998) Nesting WebDNA in JavaScript (2003) Quick ShowIf question (1997) select multiple (1997) What's the mod_webcatalog2.so.2.0 file for??? (2005) Re:trouble (1997) Help name our technology! (1997) target=_blank and form variables (1997) changing prices in cart (1997) WebCatalog can't find database (1997) Shipping.db (1998) Just Testing (1997) Tech support (2000) Re:Using WebMerchant Only? (1998) Re:Searching for ALL / empty form field (1997) How do I send a 404 HTTP header ? (2004) serial number dishing (1997) 6.0 Serial - Moving to New Server (2004) [ShowIf] and empty fields (1997) Emailer setup (1997)