Archive for December, 2007
The prototype means making a clone. This implies cloning of an object to avoid creation. If the cost of creating a new object is large and creation is resource intensive, we clone the object. This article explains how this pattern can be used in coldfusion
I set out tonight to determine if the Prototype design pattern would be useful in object factories in ColdFusion 8. The Prototype pattern, in a nutshell, is to create a new instance of an object by copying an existing object instantiation. The object to copy is an object instantiated once and then used as a blueprint for future objects of the same type. The thought is that copying an object holds a lesser cost than instantiating a new object.
Read the full Article
Tags: cf, coldfusion, design pattern, prototype pattern
December 26th, 2007
Brief introduction of DAO and Gateway pattern for coldfusion audience
Data Access Object and Gateways are the names given to ColdFusion components that access information from a database or other external data source. Within the ColdFusion community DAOs and Gateways have pretty much taken on the meaning as follows
Read the full Article
Tags: cf, coldfusion, dao, design pattern, gateway
December 22nd, 2007
Factory method pattern implementation in coldfusion along with working sample code, This pattern helps to model an interface for creating an object which at creation time can let its subclasses decide which class to instantiate.
For those of you new to this concept, an object factory is nothing but a component whose sole job is to create components. An object factory is quite simple and small. Its main role is to collect the information necessary to create an instance of the intended object’s class and then to invoke that class’s constructor
Read the full Article
Tags: cf, coldfusion, design pattern, factory pattern
December 16th, 2007
Object in command pattern are used to represent action and can be used effectively in coldfusion, this Article explains the command pattern by building a demo application.
The tutorial is simple in its presentation but gets the job done and includes a full working application putting everything to good use. You’ll be creating a home automation Remote Control for the appliances in your house. My remote has simple on/off buttons and and undo button but the tutorial will teach you to do more
Read the full Article
Tags: cf, coldfusion, command pattern, design pattern
December 10th, 2007
State Pattern implementation in coldfusion to maintain the various state of an object. The article provides step by step implementation along with downloadable code for future reference.
The introduction of ColdFusion Components (CFCs) in ColdFusion MX opened the door to more object-oriented programming in CF. When application developers start thinking about OOP, the idea of design patterns almost always comes up. In that context, Brian Kotek discusses the State pattern: its purpose, the problems it can solve, and how you can implement it using CFCs.
http://articles.techrepublic.com.com/5100-3513_11-6167539.html
Tags: cf, coldfusion, design pattern, state pattern
December 4th, 2007