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,246 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 25, 2013 at 10:01 PM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
@Avi, Really glad to help! @Jaredwilli, I'm finding a this image hits home with a lot of people :) Hopefully we can all work through the rough patches together! @Prateek, AngularJS has error ... read »
May 25, 2013 at 9:53 PM
Nested Views, Routing, And Deep Linking With AngularJS
@Mrsean2k, I'm glad I could help! I haven't been able to keep up with the ui-router stuff. I keep saying that I'll carve out time, but I just haven't gotten to it :( ... read »
May 25, 2013 at 9:49 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, Thanks for the book recommendations. I am looking them up right now. I can see that Object Thinking is available for the Kindle App - sweet! Also, I just recently heard Martin Fowler on the ... read »
May 25, 2013 at 9:41 PM
HashKeyCopier - An AngularJS Utility Class For Merging Cached And Live Data
@Chris, I'm super excited to hear that my posts are helpful. I am also loving AngularJS; but, it definitely has some caveats and some odd behaviors and some things that just don't seem to "wor ... read »
May 25, 2013 at 9:36 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Adam, @Jason, After reading these comments, I double-checked my latest implementation and I am happy to report that I am using listFirst() and listRest(). ... read »
May 25, 2013 at 9:31 PM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Daxesh, I am not sure I understand the question about the current node. If you already have a reference to the current node, why would you need to query for it? As for parent node, I believe that ... read »
May 25, 2013 at 10:08 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Ben, my question is that i want the current node with its tag and its parent node. i just want only that data. So, give me the solution for that. and remember solution is working on " xpath 1.0 ... read »
May 25, 2013 at 10:01 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
hey ben, i want get my current node tag and also want the root node tag withing. So, how can i fix it.. ! ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools