Recent Blog Posts
Blogs ยป Archive for March 1st, 2004
Suppressing White Space
…posted by davidjmedlock:
Over the weekend I happened to be working on a project with another developer and he emailed me about an issue with a custom tag that he was using. He said that there was an inordinate amount of white space in his documents. In fact, the document with all the white space in it was about 40KB as opposed to the document without white space being around 16KB. Yikes!
The reason for this is because in the execution of the page, the server must translate the CFML into p-code, which is executable by the application server. In the conversion, the CFML becomes whitespace.
When you have ColdFusion code in a display document and then view the source, you’ll see that everywhere the ColdFusion code was is now white space. This can cause your documents to be bloated and it can eat up your bandwidth quickly.
The best way that I’ve discovered for suppressing whitespace is to go into ColdFusion Administrator, go to the Settings page and click “Enable Whitespace Suppression”. This will drastically reduce the size of your pages, especially if you are doing anything database intensive where you have large …
New Article: Preparing for Whidbey
Just so you know, a new article has been published this fine day, giving a run through of some of the enhancements made in ASP.NET 2.0
http://www.sitepoint.com/article/microsoft-whidbey-dot-net
Any feature you’re looking forward to most? Drop a comment and tell everyone else!
PHPXref - Perl helping PHP
Via the International PHP Magazine (Feb 2004, Print Edition) : PHPXref - a Perl utility for cross-referencing PHP source code and very handy indeed.
Basically you point it at some directory containing PHP source code and it generates a set of static HTML pages allowing you to browse the code in your project. The most useful feature is the list of classes, functions (+ methods) and variables it builds. If you need to know all the places in your code a particular function get’s called from, you can find out immediately. Also nice is PHPXref seems to be aware of phpdoc markup [edit] - aware of “doc blocks” at least.[/edit]
Would be nice to have a cross reference for constants and to be able to distinguish global variables quickly, neither of which is currently possible (version 0.4.1) but otherwise, a very useful tool.
Clearly what I was whining about here is not the case (there are some well reasoned follow ups here and here and, thankfully, it didnt start a “language war”).
Sponsored Links
SitePoint Marketplace
Buy and sell Websites, templates, domain names, hosting, graphics and more.
Download sample chapters of any of our popular books.




