My Names Kev and I'm a CFScript Junkie

2010 July 22
tags: Coding · ColdFusion
by Big Mad Kev

Yes I said, I have an addiction to CFScript and this is my first step on the ladder to convincing the world it's the way forward :)

No really, how you write your ColdFusion Applications, is a personal choice, and in my case my choice is CFScript, and heres' why: 

1 - Readability

I find it a lot easier to read through a whole chunk of CFScript then I do a whole load of CFML, and though readability shouldn't really be a factor in the workings of an application, I feel it helps when it comes to maintaining an application.

For those who have worked with me, may know I like to have my stuff tabbed and layout out so it all looks formal ;) - and those who really know me now how to wind me up by mucking it all up after I've sorted it :D

2 - Helps Separate Code

Now I know we should keep out presentation, business logic, queries all separated out; but sometimes it's easier when knocking things together to lump them in, but by forcing the use of CFScript you'll put all the logic together in one place, the top. Which stops the mixing, this is something I use to help new users of CFML, who may not be ready for Frameworks or OO Concepts full on. I just feel this way it's a start to keep presentation and logic separated from the outset.

3 - Speed to Code

I find writing my code in CFScript to be a lot fast without having to add in the <CFSET / CFLOOP etc and just right what I need to and get the job done, and with CF9 having more CFScript support for the CFML Tags and pure CFScript CFC's your coding can only get faster from now on

4 - Makes me Feel More Grown Up ;)

No really it just feels more natural especially if you jumping from ActionScript to CF and back again, and yes you will get caught by somethings that ActionScript as an ECMEA Script adheres to that CFScript doesn't but as more people use it, these can be voices the the Listening Folks at Adobe/Railo/OpenBD formulate it more. Of couse saying it like that "grown up" I'm going to get the way don't you just use Java? if I did that I would have to reinvent the wheel, as ColdFusion already does the stuff I need Nativly unlike pure Java or .Net or Ruby or Php etc :) In my view your paying Adobe for their development time to shortern yours.

 

Nothing really ground breaking or earth shattering, but just thought I would share my view on why I'm a CFScript Junkie.

| View count: 2989
4 Responses leave one →
  1. John Sieber
    Jul 22, 2010 at 7:42 PM

    So far I'm a cfscript newbie, but your post has inspired me to start to make the change in thinking. Maybe I will soon also be preaching the change to coding in cfscript when possible.

  1. Nikos
    Nikos PERMALINK
    Jul 23, 2010 at 9:23 AM

    I too am now inspired

  1. Alexei Superdownloads
    Alexei Superdownloads PERMALINK
    Jul 23, 2010 at 7:12 PM

    Adobe should have discontinued CF via TAGs long time ago. cfscript is 100 times better to code, read and debug. They took 10 years and 9 versions to make CF scripting mature enough. Try python, wich is even better than cfscript in some cases, and of course, if u like it.

  1. Big Mad Kev
    Jul 26, 2010 at 9:03 AM

    @Jon & Nikos - Glad to hear this post has inspired you, look forward to hearing how you get on. @Alexei - CF Tags Still have their place, it make the language very easy to learn at an entry level, allowing people to move on to Scripting later. Yes Python can be very cool but it's all about the spacing ;)

Leave a Reply