Another hint on ColdFusion 9?

During the keynote at cfObjective, Jason Delmore had a slide up for maybe 30 seconds or so. He hinted that something special was up there, although it was disguised to most as pseudo-code for fun. Looking at the code, and taking Jason's hints - it leads you to think that you may be able to fully develop CFCs with cfscript. I.e., a 100% script based CFC. Possible CF9 feature?

Comments

Im guessing people wnat this to have OPTIONS right? because, why have both type of scriptings? Stick to tag based syntax and just trow us more tags :) (and yes, I am a very much "why" guy)
# Posted By Raul Riera | 5/2/08 2:19 PM
If that is the case, I totally call dibs. I predicted it almost exactly a year ago:

http://rickosborne.org/blog/index.php/2007/05/09/c...

It's about time.

-R
# Posted By Rick O | 5/2/08 2:53 PM
I'm the opposite. I'm at the point where I want Adobe to let me do all of my CF code as "cfscript" that is unless I'm specifically mingling my CF code with javascript or html. Come on, let us have .cfs files!
# Posted By Allen | 5/2/08 3:18 PM
*crosses fingers for a <cfdo> tag*

Full cfscript support would be great. The only reason I don't use it much anymore is that it can't do everything yet, and there is no speed benefit unlike CF5. Otherwise I would be using it 100% outside of views.
# Posted By Dan Roberts | 5/2/08 3:26 PM
I noticed that at the keynote and I'm REALLY HOPING to get all cfscript syntax. The tag based syntax makes no sense for writing cfcs.
# Posted By Peter Bell | 5/2/08 6:54 PM
Nice,

CFC's should support a script format perhaps CFS extension, and everything in there is script.

They would also need to add script support to some of the main tags, like <CFQUERY etc.
# Posted By Dale Fraser | 5/2/08 7:09 PM
Yeah -- why don't we just get rid of tags altogether and do everything in scripts -- then we can be just like PHP! ;-)
# Posted By Tony | 5/2/08 7:26 PM
Oh now that's just getting down right nasty, Tony! :p
# Posted By Allen | 5/2/08 8:00 PM
it would be nice to have some good documentation for cfscript as well.. i remember having to hunt and guess how code inside of cfscript. it was hard to find really good documentation on how to implement functionality within cfscript.
# Posted By shag | 5/2/08 9:28 PM
Toss the CFSCRIPT and add ActionScript3 parsing to the CF Engine... Writing CFC's in pure ActionScript, now that would be sweetness!!
# Posted By Russ Johnson | 5/2/08 10:44 PM
I would love to see that also

<cfscript language="ActionScript" strict="true">
private var name:String = 'Dale';
private var employee:Query = new Query();

employee.statement = 'select * from employee where name = %1';
employee.setParam(name, 'String');
employee.execute();

for (var i:int = 0; i++; i < employee.result.recordCount) {
writeOutput('Hello ' + employee.result[i].fullName);
}
</cfscript>
# Posted By Dale Fraser | 5/3/08 8:58 AM
I don't think they should drop the tags, but they should add full script like other languages and ideally make it ActionScript.

I give a talk on using ColdFusion and Flex together, now its a very easy to do this, recently I had a Flex guy there who was using PHP backend. He was saying, wow how easy is that, I should be doing my backend in ColdFusion. So this is good, getting new people into ColdFuion.

What would make this the first and obvious choice for these types of people is if ColdFusion supported ActionScript. Great I only need to know one language and i'm away.

Hmmm, I wonder could ColdFusion be rebranded in the future ActionScript Server :)
# Posted By Dale Fraser | 5/3/08 9:10 AM
@Paul... learn Flex / Actionscript and you will start to understand. Or learn JS and DOM and that might help. CF started (in some peoples opinion) a good thing with version 5 and script. Yet, the feature set has always been limited. This means the full argument for the benefits (not exclusive use) of script cannot be made. We do get more and more with each version and the arguments are getting better as the script gets better.

@Dale... I think there is still a good place for tags. Uniquely the concept that CFCs are not a place where you should require tags is a good thing IMO. Tags are great for view based logic.
# Posted By John Farrar | 5/4/08 10:35 AM
@shag in regards to CFSCRIPT documentation, I put together a cfscript cheatsheet you might find handy: http://www.petefreitag.com/cheatsheets/coldfusion/...
# Posted By Pete Freitag | 5/5/08 7:36 AM
I have heard the argument about actionscript in Coldfusion far too many times, and the fact of the matter is that in my personal opinion it is overkill.

Coldfusion is a scriptin language compiled to java, and in my expereince it would be far easier to adopt the JSP scripting language or Java style rather than a hashed version of something that adds more complexity.

In Dales example I would prefer to see this instead

<cfscript>
private String name = 'Dale';
private Query employee = new Query();

//Although from Dales example this would be a struct not a query object
employee.statement = 'select * from employee where name = %1';

employee.setParam(name, 'String');
employee.execute();

for (var i:int = 0; i++; i < employee.result.recordCount) {
writeOutput('Hello ' + employee.result[i].fullName);
}
</cfscript>

I am fully against Actionscript in Coldfusion, I believe it is better to adopt a more logical method that is more common in JSP, Java and .Net than go with something that was pulledout of hat just to be different.

And besides, going more like Java means no preprocessing and less translation.
# Posted By Andrew Scott | 5/5/08 7:41 AM
It would be nice to be able to use cfqueryparam outside of the cfquery while creating dynamic SQL.
# Posted By Yaron Kohn | 5/6/08 9:37 AM
@pete, thanks I think i did stumble across that when i had started using cfscript. it was a great help, but i was looking for more info on the cfml things like query and such.

does charlie have this listed on his resource list? i took a look, but i didn't see it.
# Posted By shag | 5/6/08 11:37 PM
OK, it seems a group of developers who do CF and Flex love ActionScript even more than CFScript. (Considering the CFScript is not feature complete would just top the list of explaining that problem.)

Second on the list would be a consensus that it should be as easy to communicate with Flex from CF as it is to communicate with a database. Just adding ActionScript will not solve that issue. That will have to be added if they use ActionScript or if they complete CFScript.

? Have I missed any major points here?
# Posted By John Farrar | 5/7/08 7:47 AM