Viewing By Entry / Main
May 11, 2007
Back in September last year, I listed my top four Scorpio wish list items. I couldn't come up with five at the time. Those four were: sftp support, proper command-line invocation of CFCs, the ability to archive CAR file settings inside a CAR file (making the archive settings portable) and finally the ability to have some sort of missing method handler.

Ben mentioned sftp support at BACFUG (along with a ton of other stuff) so I'm happy about that.

I started work a while back on an event gateway / command-line rig which I'll make available (eventually). It allows you to write Unix-style shell scripts in CFML or cfscript. I have a working prototype but it needs a lot of work before it's ready even for alpha testers!

The CAR stuff... well, I filed an ER and Damon thought it was a good idea but there's no time for it in Scorpio.

So that leaves the missing method handler. Don't want to write all those getters and setters but still want that style of encapsulation? Write a handler that catches calls to undefined getXXX() and setXXX() methods and implements them dynamically. Want to do ColdSpring-style AOP without a lot of code generation or complexity? Write a simple proxy CFC with a handler that intercepts the methods calls and performs the necessary "advice".

What would it look like? Imagine you could define a function called onMissingMethod() in your CFC, that takes two arguments: the missingMethodName and a struct containing the missingMethodArguments. Now your CFC can respond to any method call and behave appropriately.

Ruby and Smalltalk both have this feature and, combined with the dynamic type system in those languages, it allows for some powerful, expressive code.

I'm very pleased to see two of my top four wish list features make it into Scorpio!

And, yes, I did ask (and receive) permission before I blogged this!

Comments

Yep Scorpio is rocking! Apparently they are already prepping for ColdFusion 9. Let's call that one "September".


So glad to see the word is out on this so I can finally start mentioning it :->


Oh this is awesome. This was the news I had hoped Ben would have revealed to us in Houston!


@Sammy, apparently it wasn't scheduled for any of the "reveals" on the Scorpio tour. When I found that out, I begged to be able to reveal it - I think it's a very important new feature that really lifts ColdFusion's dynamic abilities!


Post Your Comments
Name:
Email Address:
Comments
*** Please note that all comments require moderation so it may be some time before your comment posts to this blog! ***
Remember My Information:
 



Hosting provided by