Scaffolding CRUD functionality in CFML - SELECT all the things!

Following on from my recent post where I detailed my approach to CFC organisation, I wanted to share some more details of my current CFML coding methodology. Today I’m going to talk a little about database interaction. Unless you’re taking advantage of ORM in your CF application, you will most likely have to spend a bit of time scaffolding your components with some standard CRUD functionality. Some developers like to use a single component to manage all database interactivity, but I tend towards creating functions for each individual component. The goal is to have a standardised set of…

Read More

My CFC methodology

I’ve been thinking recently about my coding style. I’m always interested in doing things in the most elegant and efficient way possible and the methodology I use these days is a result of many years of experimentation and refinement. I think a coding style, from formatting and file structure to app conceptualisation; is a delicate balance between personal preference and the conventional wisdom of our peers. Well structured and thought out code is easy to maintain and a joy to return to, but inconsistent code can easily become unwieldy. I wanted to share some examples of the way…

Read More

Still writing CFML in 2017

I came across a post by Adam Cameron today regarding migrating away from CFML, and the possibility of helping others to do so with some kind of project similar to the excellent ColdFusion UI the Right Way - showing how common CF functionality could be replicated in other languages. I still love CFML, but I can't deny that the community has gotten smaller over recent years and some of the work I've had of late has involved helping to maintain legacy CF based systems while new ones are being built in some other language. I'm certainly not against moving to…

Read More