By barneyb on August 3, 2010
A couple years ago I wrote about using YUI Compressor to do built-time aggregation and compression of static assets. That works well and good if you have a build environment, but that's not always the case. So, still using YUI Compressor, I set up a simple script that'll do runtime aggregation and compression of assets [...]
Posted in cfml, javascript, tools
By barneyb on July 30, 2010
If you've ever used Grails, you probably know about the 'flash' scope that it provides for passing data from one request to the next. Certainly not a must-have feature, but it's quite handy. The typical use case is after a form submit, you set stuff into the flash scope and then redirect to some page [...]
Posted in cfml
By barneyb on July 23, 2010
Guess what time it is, kids!!
It's "Barney still wants CFML closures" time! Yay!
Today's impetus is Edmund, Sean Corfield's event driven programming framework. In order to register event listeners, you have to a CFC instance with a specific method to be invoked on it, and which accepts an Edmund Event as it's sole argument. Which means [...]
Posted in cfml
By barneyb on June 8, 2010
I've added two new methods to my Amazon S3 CFC: listBuckets and listObjects. Both of them do about what you'd expect, returning a CFDIRECTORY-esque recordset object containing the rows you are interested in. I've attempted to make S3 appear like a "normal" filesystem where "/" is S3 itself, the top-level directories are your buckets, and [...]
Posted in amazon, cfml
By barneyb on May 26, 2010
Yesterday I presented CFGroovy to the Tulsa CFUG via Connect. The recording is now available on Connect, thanks to Steve. You can also grab the slidedeck (as a PDF) I skimmed through, and of course, the CFGroovy framework itself (project page, core SVN, demo SVN), including the demo files that I showed.
Posted in cfml, groovy, personal
By barneyb on April 23, 2010
This afternoon I presented on Polyglot Programming at cf.objective() 2010. Unlike most presentations I give, this one has almost no code, so the slidedeck (as a PDF) is the whole shebang. The in-deck content is admittedly light; really just an outline to follow along as I talked. The short version of the verbal part is:
Using [...]
Posted in cfml, development, groovy
By barneyb on April 7, 2010
<rant>
Every time TIOBE comes out with new listings people bitch about ColdFusion. It bugs the shit out of me. Here's the deal folks:
ColdFusion is a server product. It is NOT a language. CFML is a language. You don't write ColdFusion, you write CFML and then you run your CFML on ColdFusion (or Railo, or OBD). [...]
Posted in cfml, coldfusion, personal, railo
By barneyb on April 5, 2010
As I've stated at various times and places, CFGroovy 1 (with Hibernate integration) has been superceded by the ORM functionality now available in ColdFusion 9 and soon to be available in Railo 3. It has never been my intention to compete with the CFML vendors in the Hibernate space – without access to the engine [...]
Posted in cfml, groovy
By barneyb on March 31, 2010
I've been working towards this for quite some time, and last night I finally replaced ColdFusion with Railo on my personal server. By and large the switch went flawlessly. I made a few compatibility changes ahead of time and found and fixed a few issues subsequently, but really smooth overall. Even better, the memory footprint [...]
Posted in cfml, coldfusion, meta, railo
By barneyb on March 22, 2010
I'm sure I wasn't the only one that was sorely disappointed when Adobe released CF9 without the ability to execute HQL queries via the CFQUERY tag. Using a function (ormExecuteQuery) works, but it's really ungainly if you have complex – or even just long – HQL or need to build your statement conditionally, and you [...]
Posted in cfml, coldfusion, database