This is a ColdFusion example of how to implement the Strategy Pattern.
ColdFusion JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Robots
images
scripts
stylesheets
.gitIgnore
README
index.cfm
robotdemo.cfm

README

This repository contains a presentation that did called:

"Understanding the Underlying Patterns of MVC"

It uses the jQuery Presentation Plugin by Trevor Davis for the slides 
and borrows images from the Head First: Design Patterns book. 
All images belong to their respective owners.

To explain the strategy pattern which I was having a hard time visualizing I wrote a
"Robot Fight" program.

If you would like to see it in action you can installed the code on your own ColdFusion server 
or http://cfmumbojumbo.com/cf/codedemos/robotstrategy/robotDemo.cfm 




MIT License Applies to the code under the Robots Folder:

Copyright (C) 2011 by Timothy Cunningham

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.