As with all development, CFML via ColdFusion, Railo or OpenBD we run into common programming problems. For these problems must programmer turn to patterns (or anti-patterns). However the classic resources like GOF and the modern Head First books both tend to focus on Java.
While java is beautiful in its own right, all three cfml engines are essentially java applications, that said not all or even many design patterns can or should be used in the java way when writing cfml.
I would like to know what resources/patterns you have found useful when working with cfml? Or what you changed adapting a java or smalltalk pattern for use in cfml?
Personally I found both of these presentations to be interesting:
CFMeetup: Design Patterns and ColdFusion By Sean Corfield
and
Design Patterns By Cameron Childress
Update:
Stumbled upon cfdesignpatterns.com, looks promising.
Creational design patterns are the Factory Method, Abstract Factory, Builder, Singleton, Object Pool, and Prototype.
In this chapter, I will present PySpark implementations of the following design patterns: Input-Map-Output. Input-Filter-Output. Input-Map-Reduce-Output.
Head First Design Patterns is an excellent book. Though it's focus seems Java based, it's the principles within that matter. CFML doesn't lend itself well to pure OO development, with much ongoing debate of that going on within the ColdFusion community, but that doesn't mean that patterns and frameworks are without merit.
It comes down to what works best for your application, and for you as a programmer. I like studying the various frameworks that are out there, to get insight into someone else's approach. I personally like to work within an MVC style, which lends itself to good maintainability and structure. I've used most of the available frameworks, in one way or another, over the past several years. Each has their strengths and weaknesses.
Patrick's SOLID reference looks intriguing too.
For a site you may want to check Object-Oriented ColdFusion. Its still a work in progress, but it may help.
regards, larry
I've found the SOLID principles more helpful than anything else. If you understand the SOLID principles, you'll write better code in any language, and be able to use design patterns more effectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With