AdobeStock_455007340

Justin Carter On CFML In CFSCRIPT

Home » Justin Carter On CFML In CFSCRIPT

Justin Carter has posted thoughts on using CFML within , using (what he calls) C4X. While I must (once again) confess not not being a big fan (I was actually opposed to many of the enhancements made in recent CF editions, I’d have much preferred we deprecate in favor of server-side ActionScript), Justin’s post makes for an interesting read. We’ve been debating the future of since it was first introduced back in CF4 in the 90s, and I think we’ll be debating this one still for some time to come.

5 responses to “Justin Carter On CFML In CFSCRIPT”

  1. big al Avatar
    big al

    Not sure about C4X yet, but I absolutely love writing components and business logic in cfscript. I finally feel like I’m using a real language. The cfscript improvements in CF9 probably kept me from jumping the CF ship.

  2. Ryan Favro Avatar
    Ryan Favro

    #ERROR!

  3. Cyril Hanquez Avatar
    Cyril Hanquez

    That’s part of the problem: I’m wondering why so many people have the feeling that a "tag-based language" is not a real language? It doesn’t look complex enough for them to be proud of what they are doing with it? Why adding complexity when things could look "simple" (and understandable by the majority)? Problem of ego maybe? LOL
    Seriously, there are some good arguments on both sides and i don’t think there’s a good/bad answer.

  4. Tony Garcia Avatar
    Tony Garcia

    I’ve long been a proponent of tags (CFML) and have had sort of an anti-cfscript attitude. In the last year, though, cfscript has sort of won me over when I’m writing components (tags still rule for display code, though). The reason, though, has nothing to do with any sort of "inferiority complex" about using a tag-based language. It’s really just a pragmatic issue for me of being able to write logic more efficiently.
    I have to say that I’m not a big fan of the current implementation of cfquery in cfscript in CF9. For me, the benefit of less verbose code in cfscript just goes out the window when it comes to queries. So I’m thinking C4X may be a good alternative until Adobe improves on this.

  5. Justin Carter Avatar
    Justin Carter

    Thanks for continuing the discussion Ben 🙂
    The server-side ActionScript idea has been thrown around a few times, and I know Adobe has demoed it before at one of the MAX conferences (was it 2009?), but whether or not it’s a great fit for CF in terms of *replacing* cfscript is a huge can of worms!
    The topic deserves more than a few comments from us here, but a few points worth considering include;
    – What problems does cfscript have that ActionScript would solve? (And in this case, would it inherently solve the issue of verbosity of cfquery, or allow the use of custom tags?)
    – Would changing to ActionScript actually bring important new features and improve developer productivity?
    – Why not server-side JavaScript instead/as well? (Wouldn’t JavaScript’s developer base be larger than ActionScript’s? There’s a target market right there!)
    – ActionScript and JavaScript both support E4X, so wouldn’t C4X fit right in? 😉
    Personally, I think I’d stick with cfscript or tend towards server-side JavaScript before wanting to use server-side ActionScript, depending on how radically different it was (i.e. AS3?). I’d be interested to see some blogs which had strong thoughts about it one way or the other.

Leave a Reply