An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

FW/1 comes to Clojure

November 7, 2011 ·

After two years in the CFML world, FW/1 (Framework One) comes to Clojure!

Intended to bring the same simple, lightweight, convention-based MVC web application development that has proved so popular in the CFML world to the world of Clojure, FW/1 for Clojure is available on Clojars (0.1.0, as of April 2012). If you clone the github repo, you'll see a "user manager" example application which is a port of the same app from the CFML version of the framework. The documentation is, as always, a work in progress but covers the basic API and how to create a driver program for the framework in Clojure. More information on the rationale, approach and API of FW/1 can be found on the FW/1 (for CFML) wiki. I plan to adapt this for the Clojure version shortly...

Tags: clojure · coldfusion · fw1 · oss

5 responses

  • 1 Fred Burnier // Nov 8, 2011 at 2:28 AM

    So you've gone from obscure CFML to even more obscure with Clojars really?
  • 2 Sean Corfield // Nov 8, 2011 at 10:24 AM

    @Fred, the language is Clojure - Clojars is a library repository web site.

    I don't know who you are or your background so your comment sounds like trolling, without more context., but I'll respond as best I can...

    As for language choices, I started with C and assembler, did a lot of C++ (including being a voting member of J16, the ANSI Standards Committee, for eight years, as well as secretary of it for three), a lot of Java, some Groovy, some Scala - and that's all been production software. Since 2001, I've been doing a lot of CFML - and still do CFML work at World Singles. I've used CFML in combination with Groovy, Scala and Clojure over the last four years. I've generally been a polyglot programmer and expect to continue being so, as each language brings its own pros (and cons) to the table and the JVM allows us to mix'n'match, as we wish.

    I currently plan to continue developing and maintaining FOSS projects in both CFML and Clojure (so I'm not "gone" from CFML but I expect my focus to be more on Clojure, going forward).

    As for obscurity, on IRC #clojure typically has 300+ developers hanging out compared to #coldfusion with 20 on and 11 right now on freenode. The Clojure mailing list has over 5,500 members. Clojure's conference attendance rivals the biggest events that CFML has to offer (now that CFUnited has died) - the East Coast conference is this week (I fly out tomorrow) and the West Coast conference is in March (in San Jose, CA).

    True, both CFML and Clojure are niche languages, but they're both hosted on the broad JVM ecosystem and can leverage that easily, which means they "play nice with others". At the end of the day, languages are just tools in our toolbelt and we all benefit from having more than one tool...
  • 3 Fred Brunier // Nov 8, 2011 at 2:18 PM

    No not trolling, just wondering why you wouldn't take the framework to something more mainstream. PHP .NET etc.

    I have a CFML background, I dont know a single Clojure developer. I actually like the simplicity of FW/1 but we are moving away from CFML and just wondering if the time you invested in Clojure wouldn't be better served elsewhere.
  • 4 Sean Corfield // Nov 8, 2011 at 6:38 PM

    @Fred, thanx for the context.

    My background is C, C++ and Java - prior to ColdFusion - and whilst I've used PHP, I don't like it much. I've worked with ports of both Fusebox and Mach-II in PHP - neither of which are maintained these days. People tend to only maintain frameworks in languages that they use day-in, day-out.

    I've never used .NET - I don't use Windows at all - apart from a brief experiment with XSP / Mono several years ago.

    Apart from dipping into Java occasionally, I really don't use any "mainstream" languages. I think CFML is great and I love Clojure - and I felt it needed something like FW/1 so we'll see how well it's received in that community.

    Sorry to hear you're moving away from CFML. What's driving that change?
  • 5 Fred Brunier // Nov 8, 2011 at 6:45 PM

    Stupid managers who like Microsoft lunches