Wednesday, August 19, 2009
Thursday, June 18, 2009
coldfusion variable variables
for some stupid reason, this code always eludes me when i need it. posting it here for referencenence.
bång!
<cfset listToSterilize = "id,keywords,yada,yada,yada">
<cfloop list="#listToSterilize#" index="index">
<cfset "#index#" = #htmleditformat(evaluate(index))#>
</cfloop>
bång!
Tuesday, February 17, 2009
tootsie pops
I just opened one and I think they're getting smaller. I don't think it's just that they seem smaller now that I'm 80.
Edit- Wow, they taste a hell of a lot better than I had remembered.
Sunday, February 15, 2009
Saturday, January 31, 2009
Tuesday, December 09, 2008
ColdFusion 8 avec MAMP!
Added CF8 to my existing MAMP dev environment this morning. Was a breeze especially after watching this guys paiiinfully slow and noobalicious install video.
But hey, it seems to work thus far. I'll keep you posted on what I run into and how learning model glue works out.
But hey, it seems to work thus far. I'll keep you posted on what I run into and how learning model glue works out.
Tuesday, December 02, 2008
MVC Demystified
I posted yesterday about application frameworks causing vertigo. In reading through this article by Malcolm Tredinnick I breathed a sigh of relief. Things made sense again.
Malcolm links to ModelViewController at WardsWiki which provides excellent information on these usefult echniques. In a recent interview, a developer asked me to define MVC design. I put together the traditional explanation, and I thought the quote on the WW article summed it up nicely:
I genuinely feel that people are locking their thinking in, and causing unnecessary confusion, by getting hung up on "MVC practices". When, as I hope I've shown and linked to, the problem space is much more subtle than that and multiple solutions exist. Focus on the problem you are trying to solve. Keep in mind that there are many similar, but different solutions and think about the Django mapping example I did in the previous section. Hopefully you can see that it's ridiculously constraining (not to mention, simply incorrect) to assign labels to broad components in a framework when they work at a much finer-grained level.
Malcolm links to ModelViewController at WardsWiki which provides excellent information on these usefult echniques. In a recent interview, a developer asked me to define MVC design. I put together the traditional explanation, and I thought the quote on the WW article summed it up nicely:
The model is the data, the view is the window on the screen, and the controller is the glue between the two. -- ConnellyBarnes
Subscribe to:
Posts (Atom)