Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CFML Design Pattern resources?

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.

like image 528
ethyreal Avatar asked Jul 30 '09 21:07

ethyreal


People also ask

What are six different types of creational design patterns?

Creational design patterns are the Factory Method, Abstract Factory, Builder, Singleton, Object Pool, and Prototype.

What are the design patterns in spark?

In this chapter, I will present PySpark implementations of the following design patterns: Input-Map-Output. Input-Filter-Output. Input-Map-Reduce-Output.


3 Answers

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.

like image 76
Steve -Cutter- Blades Avatar answered Oct 16 '22 18:10

Steve -Cutter- Blades


For a site you may want to check Object-Oriented ColdFusion. Its still a work in progress, but it may help.

regards, larry

like image 40
Larry C. Lyons Avatar answered Oct 16 '22 17:10

Larry C. Lyons


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.

like image 1
Patrick McElhaney Avatar answered Oct 16 '22 16:10

Patrick McElhaney