ColdFusion and OOP - Match Made in Heaven, or Long Road to Hell?

Posted July 14, 2009 at 10:45 AM by Ben Nadel

Tags: ColdFusion

For a long time, Hal Helms has been my beacon of hope in the world of object oriented programming madness. With many years of OO programming experience across a variety of different languages, I thought, some how, if I could just understand the concepts that he did, I would finally be able to wrap my head around the beast which is OO. As such, I read his articles, subscribed to his occasional newsletter, and even twice attended his "Real World OO" seminar. That said, you can imagine my shock when Clark Valberg came into the office the other day and told me that Hal no longer believes that Object Oriented Programming should be used in ColdFusion specifically.

Say What!!!

This sudden heresy set the stage for some very interesting conversation. And that's just what happened. This last weekend, two of ColdFusion's OO icons - Hal Helms and Brian Kotek - got together with me to duke it out verbally. Brian was pro-OO, Hal was the newly risen opponent of OO, and I was the poor, confused, procedural developer in the middle who didn't know to think (I know it's a stretch, but I pulled it off well).

If you want to listen, Hal Helms has posted his description and a Flash Player for the pod cast. If you want to be part of the conversation, please post your comments to Google Groups so the conversation does not get fragmented.

NOTE: I can't disable comments on my blog, but please do NOT post your comments here.



Reader Comments

Jul 15, 2009 at 2:30 AM // reply »
13 Comments

I would think that learning Java or something similar (C#,C++,Actionscript 3,PHP etc) - (maybe preferably a language with curly braces???) is the best to grasp object oriented thinking. And be a developer who can more than a language. Propably hard to be a expert in it but at least know some other stuff besides one tool or one language. Isn't OO in coldfusion whipping out CFC:s the OO thing? What more lies in it? A CFC is like a class in java but written with tags instead? And OO is not a solution to all problems, sometimes it can be a longer road to a solution when a simpler approach would just be fine.


Jul 15, 2009 at 8:04 AM // reply »
11 Comments

@ Marko
Are you seriously comparing PHP to C# and C++ because they have "curly braces"? How do you suggest these languages relate beside that? Don't you think that PHP by nature is a lot closer to ColdFusion? I guess I must be confused by your definition of the "OO thing" because I love CF but CFCs are close to being classes without being... well classes.


Jul 15, 2009 at 8:13 AM // reply »
13 Comments

@Jean

What I've done with PHP is that you can create classes in the same way as in C# and Java, and thus create object-oriented applications if you wish. Sure, there are some differences and the syntax is not entirely the same. And PHP is loosely typed which Coldfusion is also, but C# and Java are strongly typed. I'm not all that sure about what to call Coldfusion Object Orientation - is it CFC:s?


Jan 28, 2010 at 7:42 AM // reply »
1 Comments

Your site is a refreshing change from the majority of sites I have visited. http://google.com


Jan 28, 2010 at 10:19 PM // reply »
11,238 Comments

@Ann,

Thanks Ann, that is super sweet of you to say :)


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 20, 2013 at 4:38 PM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Dana, Your confusion is well founded, since this is a very confusing features. In fact, it ONLY works if you use array notation. Meaning, that this: arrayToList( query[ "columnName" ] ) ... read »
May 20, 2013 at 4:34 PM
Using A Dynamic Column Name With ValueList() In ColdFusion
I was thinking chicken and the egg, I wouldn't have expected it to work in the valuelist going in I guess. Maybe I just need a beer, long day :) ... read »
May 20, 2013 at 4:29 PM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Dana, That's if you're trying to reference a specific row. In this case, we're trying to reference the entire query column as one cohesive value. So, you are correct that if you wanted to output a ... read »
May 20, 2013 at 4:24 PM
Using A Dynamic Column Name With ValueList() In ColdFusion
I thought when you used array notation to reference queries you always had to have the row or it would throw a similar error as well? ... read »
May 20, 2013 at 11:45 AM
Using jQuery's Animate() Step Callback Function To Create Custom Animations
This is really useful. I found out that you don't actually have to use a dummy css property (surprisingly). To animate a property in a linear-gradient for instance I did this this.css('someLinearGra ... read »
May 20, 2013 at 10:51 AM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Josh, Oh snap! You're totally right! I'm not sure I've ever tried that. I did know that you can call a number of other array-methods on ColdFusion query columns: http://www.bennadel.com/blog/167 ... read »
May 20, 2013 at 10:45 AM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Ben - I believe you can achieve the same functionality with ColdFusion's built in ArrayToList() function. ArrayToList( users[ "id" ] ); ... read »
May 20, 2013 at 10:21 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
Is there any error logging and handling framework in angularjs, if not then in what way I can do this. ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools