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