I would be very interesting to find out more, what do you mean by badly
written?

Lets look at a standard CF page compared to ASP, the same code and all it
does is produce a list of items on the screen from a loop. In ASP there was
no white space, however in CF there was whitespace.

Now if you refer to the bad techniques of a developer, then this is a good
example. Now if you refer to removing whitespace with the enablecfoutput
option, this cause more headaches than its worth.

For example, normally (with the option described above) HTML will need to
have <Cfoutput> wrapped around it putting more load onto the CF Service. So
is it worth actually doing all these tricks do make the server grunt more to
save some bytes.

I mean 30k of text is quicker than 30k of binary any day, and the sooner
people realise this the better the world will be.


regards

Andrew Scott
Senior Cold Fusion Application Developer


-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2001 20:27
To: CF-Talk
Subject: RE: Statistics on Toy R Us


  > >
  > >   > Thats very interesting, because doing a view source indicates
  > >   > that they are
  > >   > using CF:-)
  > >   >
  > >   > I mean how many other scripting languages generate that much
  > > whitespace!
  > >   >
  > >
  > > Erm...
  > >
  > > Loads of languages generate that much whitespace!
  >
  > Which ones?

Perl (if badly written), PHP (if badly written), ASP (if badly written), CF
(if badly written), Mason (if badly written), and everything else under the
sun (if it's badly written).  CF, however is a bit more interesting...

The point about CF is that it uses the approach of "Anything written in CF
changes to whitespace when processed" as a default, instead of treating CF
as a programming language and compiling etc (prepare to flame me...).
That's what produces the whitespace.  This can of course be turned off, and
can mean faster page loading.  The CFML processor is effectively only a
parser (a fast one, but still a parser) so any other language that is parsed
like this will produce similar output.

Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to