Every now and again I check back on this blog and think to myself, “Oh, I must write about…” Whatever it is I’m thinking about at the time. Three years since my last post would indicate that I’ve not followed through with those inclinations… Still, here it sits, an ever present reminder that I exist and have a little space on the web. What better time than during a worldwide lockdown, where we have little to do but sit indoors staring at screens, to pick up the virtual quill? Over the last few years I’ve been hacking…
All posts in “CFML”
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…
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…
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…