Entries for month: July 2009

<cfdump> Art

<cfset variables.art = {art = art}>
<cfdump var="#variables.art#">

=

ColdFusion Dump Art

'Agile' Integration Tests on Grails

Over the weekend I finally scrounged some mental space to write a small application to manage bookings for my badminton club. After debating between Ruby on Rails (RoR) and Grails, I decided on Grails.

As you might know Grails has very nice and expressive way of modeling the domain classes -- arguably more elegant than RoR. And also that writing integration tests to experiment with the CRUD functionality makes writing a robust and testable model very simple.

So I wrote a bunch of integration tests as I was designing the domain classes. However, running the tests using grails test-app was proving to be very slow, and I mean really slow -- 11 seconds to run tests on two domain classes.

Usingᅠgrails test-appᅠruns both unit and integration test. The actual time taken to run both the unit and integration tests wasn't that much. It was the overall task of setting up the test environment that seemed to be taking a while.

Read more...

Coda Snippets for ColdFusion, MXUnit and ShadoCMS

Coda - Grow Beautiful CodeIf you've been following my blog, you might have seen that I've started using this wonderful editor called Coda for most of the development work I do. It has very nice built-in support for ColdFusion and given that it is a native Mac app, the interface is beautiful. And it has a few really nice features like built-in FTP and Clips (snippets).

Over the last month or so, I've built up quite a few clips, which are just snippets in CFEclipse-speak, for ColdFusion, MXUnit and ShadoCMS. Obviously I'm adding more as I find time or as I need, but here is what I have managed to put together till now.

Read more...