Posts with the tag 'coldfusion'


Singleton Pattern in Coldfusion

Coldfusion implementation of singleton pattern to restrict instantiation of class to one object. Singleton Pattern is useful when exactly one object is needed to coordinate actions across the system. Sometimes it is generalized to systems that operate more efficiently when only one or a few objects exist

Singletons are perhaps one of the most simple Design Patterns. For those who don’t know sigletons are a class that can only have one instance. They can be thought of as a glorified global variable - but are a lot more useful.

Read the full Article

Add comment November 27th, 2007

Strategy pattern Example for Coldfusion

Demo application with source code showing the usage of strategy pattern to dynamically select/change the class behavior at runtime and without having to lock the class to a specific behavior

As I make my way through Head First Design Patterns, which I am starting to agree is a “must” on a developer’s bookshelf, I decided I would work out some of the exercises in ColdFusion code. It is geared towards Java, but the principles carry over into OOP practices in ColdFusion as well.

Read the full Article

Add comment November 23rd, 2007

Using Composite pattern in Coldfusion

Brendan O’Hare has written an excellent article explaining the Composite Design Pattern and its implementation in ColdFusion by using CFC (ColdFusion Components)

“As ColdFusion developers, we tend to build applications based on pages that display information and queries to retrieve information and save information. We tend to think solely of how we are going to implement the code required to perform a certain function. Many times we are not able to consider the commonality of a certain problem and whether an already established design exists somewhere.

Often we are not able to set aside time to do this research. Knowing and utilizing design patterns allows us to think in a common language, with an ever-expanding library of well thought out solutions to consider when architecting an application. Recognition of these patterns in our everyday jobs can make us significantly more productive and seem even smarter than we are.”

Read the Full Article

Add comment November 19th, 2007

Newer Posts


 Subscribe in a RSS reader


CourseLookup.us - Providing course and conference information to enhance your knowledge base.

Tags

Calendar

July 2010
M T W T F S S
« Dec    
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category