Jul 20, 2009

ColdFusion 9 and my favorite improvement!

Recently I have spent alot of time blogging on Railo and haven't had a chance to talk about some of the excellent new features of ColdFusion 9. Probably the most anticipated feature for me is full script support I'm so glad they decided to implement this. Another excellent feature is how they have fixed up the need to call init() on components as a "semi" constructor.

Check out what you can do now:





Notice the use of the implicit setters love this aswell properties are protected and are accessible only by getters() and setters().

It's not a real constructor we are used to in actionscript, java, c++ ect ( method name the same as the object ) but its pretty close and apart from the name, functions the same way.

I love the new syntax the code feels clean and there less of it.



......Update
After a quick chat with Justin Carter we can actually specify the name on the method we want to use as the constructor. Awsome no more init() methods needed.

5 comments:

  1. This is awesome stuff! So that means there's a dump() function, and output function?

    I always used to hate having to close cfscript tags, put in a cfdump tag and then reopen again...
    ReplyDelete
  2. Whoops, WriteDump & WriteOutput! Yay!
    ReplyDelete
  3. I think it's awesome that you can now write Java inside the CFC. By ColdFusion 12, it'll be pure Java. Will they still call it ColdFusion?

    All joking aside, I think it's wonderful! I would much rather write the code as script instead of tags.
    ReplyDelete
  4. That is sweet. And CF9 Standard will be available in 64-bit too.
    ReplyDelete