Thursday, May 24, 2012    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jan 2011 >>
S M T W T F S
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Search

Categories
 • Acrobat (5) [RSS]
 • Adobe (117) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (34) [RSS]
 • AdobeMAX11 (28) [RSS]
 • AdobeMAX13 (1) [RSS]
 • AIR (299) [RSS]
 • Appearances (217) [RSS]
 • Books (86) [RSS]
 • CFEclipse (15) [RSS]
 • Cloud (1) [RSS]
 • ColdFusion (1483) [RSS]
 • ColdFusion Builder (23) [RSS]
 • Data Services (43) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (368) [RSS]
 • Flex (565) [RSS]
 • Home Automation (5) [RSS]
 • HTML5 (36) [RSS]
 • JavaScript (3) [RSS]
 • Jobs (133) [RSS]
 • jQuery (15) [RSS]
 • JRun (14) [RSS]
 • Labs (63) [RSS]
 • LiveCycle (37) [RSS]
 • MAX (285) [RSS]
 • Mobile (257) [RSS]
 • PhoneGap (17) [RSS]
 • Regular Expressions (19) [RSS]
 • RIA (21) [RSS]
 • SQL (45) [RSS]
 • Stuff (554) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (167) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Entry / Main
January 26, 2011

Justin Carter On CFML In CFSCRIPT

Justin Carter has posted thoughts on using CFML within <cfscript>, using (what he calls) C4X. While I must (once again) confess not not being a big <cfscript> fan (I was actually opposed to many of the enhancements made in recent CF editions, I'd have much preferred we deprecate <cfscript> in favor of server-side ActionScript), Justin's post makes for an interesting read. We've been debating the future of <cfscript> 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.

Comments
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.
# Posted By big al | 1/26/11 7:18 PM
+1 for server side ActionScript.
# Posted By Ryan Favro | 1/27/11 2:51 AM
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.
# Posted By Cyril Hanquez | 1/27/11 5:44 AM
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.
# Posted By Tony Garcia | 1/27/11 9:21 AM
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.
# Posted By Justin Carter | 1/27/11 5:27 PM

  © Copyright 1997-2009 Ben Forta, All Rights Reserved