An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

Entries for month: July 2007

Java and Shared Hosting

July 31, 2007 ·

I'd never really given much thought to running Java on a shared environment (because I'd never write a web app in JSP when there are more productive options). Turns out that most Java frameworks won't run on most shared hosts! Given the discussions in our own community about the security of shared hosting (or lack thereof, for the most part), I thought it was interesting that most Java frameworks require a security policy that Sun's own documentation says is a security vulnerability. Anyone have any experience of trying to run Struts or Velocity or something similar on a shared host?

Tags: coldfusion · j2ee

ColdFusion 8 on the Adobe Developer Center

July 29, 2007 ·

Lots of ColdFusion 8 goodness in the developer center:

Tags: coldfusion · adobe

ColdFusion 8 Updates for DW, HS, Eclipse Available

July 29, 2007 ·

These can be downloaded ColdFusion Support Center, along with the report builder, the .NET integration service and the Flex/Flex Remoting components (making it easy to connect to CF apps).

Tags: coldfusion · adobe

ColdFusion 8 Available

July 29, 2007 ·

ColdFusion 8 available for trial and purchase. Standard Edition price is unchanged, Enterprise Edition moves up to $7,500. All language features are available in Standard Edition but some features, such as event gateways and cfthread are "limited" (in terms of performance). Enterprise Edition adds additional DB drivers, multi-server install and J2EE deployment and sandboxing (as usual) but also the server monitor and user/role management for the administrator.

Tags: coldfusion · adobe

Fusebox 5.x Workshop

July 29, 2007 ·

11am Pacific / 2pm Eastern, August 2nd, Thursday, via cfFrameworks and Adobe Acrobat Connect Professional, I will run a one hour workshop on Fusebox 5.1 and I will preview Fusebox 5.5. I'm still working on the exact agenda but it will be fairly code-centric and it will be the first public preview of Fusebox 5.5! I will start with a very brief overview of Fusebox so even if you don't know the framework at all, you should be able to follow the workshop.

Tags: coldfusion · fusebox

New Adobe User Group in Greater Orlando, FL

July 26, 2007 ·

Adogo - Adobe Developers of Greater Orlando - is a new user group focused on ColdFusion, ActionScript, AIR and Flex. Maxim Porges, Adam Fortuna, Brian LeGros are all involved. The group meets on the first Tuesday of every month at 7:00pm at the Devry University at Milenia and the group is kicking off on August 7th with Adam Fortuna on Flex/ColdFusion Applications with ColdSpring and an RIA BOF which should be a good evening.

Tags: coldfusion · adobe · air · flex

can has pownce?

July 26, 2007 ·

I have six more invites... Rich, Ben, Fred get the first three for asking last time (see below) but that still leaves three invites!

Tags: personal

MVC frameworks and AJAX

July 26, 2007 ·

With all the buzz around AJAX - especially with CF8 making it so easy - we're starting to see a lot of questions about how best to integrate AJAX with MVC frameworks like Fusebox, Mach II and Model-Glue. Brian Kotek has a great post about data vs content in the context of AJAX and frameworks. He emphasizes the benefit of having your model in CFCs as the easier way to expose data-centric functionality to AJAX and notes that for data calls, you should not be trying to go through the MVC framework. It's a good read.

Tags: coldfusion · architecture · machii · fusebox · modelglue

Improving site performance with YSlow

July 25, 2007 ·

If you haven't already heard, Yahoo! has released YSlow for Firebug, a Firefox plugin that analyzes your site for ways to speed things up in terms of HTML, CSS and JavaScript. I installed it an hour ago and it gave my site a performance grade of D with a score in the low 60's. After a few small tweaks, my grade is B and my score is 83. My blog should be noticeably faster to load. The first thing it recommended I do (an "F" on Reduce DNS lookups) was to strip a number of the third-party JavaScript features I'd added over time in order to reduce the number of domains my site referenced. I removed the Technorati, Skype and Twitter JS calls because, well, they really don't add much value. I changed my Site Meter code to use the non-JavaScript version - which also had the benefit of removing attempts to ping specificclick.net which sets a third-party tracking cookie (Google for more details - some people feel Site Meter should have been more open about this change). I also got an "F" for ETags. Reading the Yahoo! site (linked from the YSlow plugin) gave me the Apache magic necessary to disable those (in my .htaccess file):
FileETag none
I have a "B" now because the Developer Circuit widget still has an ETag. An "F" in Expires header scoring became a "D" after I enabled Expires headers for CSS and images (again, in .htaccess):
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
My Gzip components scored improved to a "B" by adding a directive to deflate CSS:
AddOutputFilterByType DEFLATE text/css
Another tweak I made that seemed to help was adding defer="defer" to the Developer Circuit JavaScript include - the only third-party JS left on my site now. The only remaining "red flag" - my one remaining "F" - is the recommendation to use a CDN which isn't really available for free to folks like you and me. If Developer Circuit adds a few Expires headers, enables Gzip and disables ETags then my site will get faster still but I'm impressed with what I've been able to do in a short space of time. Thanx Yahoo! p.s. Also thanx to John Farrar who was the first person to notify me about YSlow!

Tags: coldfusion · apache

Using Design Patterns without thinking

July 25, 2007 ·

Kola Oyedeji articulates a growing frustration with CFers' use of design patterns that has also begun to bother me as more and more CFers try to move to OO. He highlights Brian Rinaldi's analysis of gateways in CF and then goes on to ask why we don't use several other common design patterns. Brian's post digs into the various types of gateway patterns and points out that none of them match what we tend to call a gateway in CF. Brian's post is a good read (I meant to blog it at the time but I've been a bit swamped this last week) and Kola's only scratches the surface of a growing problem in our community. I posted a couple of comments on Kola's blog which I may elaborate on as future blog posts here since I think design patterns are very important but there needs to be much more CF-specific "education" on them.
Please also take the time to read Matt Woodward's (very long) post about our use of design patterns in ColdFusion. It's an excellent read and makes some very important points about there being no "One True Way" and the fact that patterns are high-level and therefore can have multiple implementations in different languages.

Tags: coldfusion · architecture