View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 2 - Brian Henke

1.2)What are the differences between creational, structural, and behavioral patterns?

Creational patterns are the designs of how objects create other objects. This is useful if you want to create a specific object A and that object always uses certain other objects D. The objects D could be created by object A so that the initialization is limited to creating one object.

Structural patterns are how objects come together to form larger objects. When simpler objects communicate they can usually be grouped together to form an object and be used over and over again.

Behavioral patterns are how objects communicate. It is sometimes necessary for the programmer to understand complex interactions between many different objects. These patterns help by labeling these flows and communications.
Author: James W. Cooper

2)Describe one design pattern or pattern language in your own words. Again, reference your sources. Explain what interests you about this pattern. Does it make sense to you? Can you see using it in your coding? If so, what for? If not, why not?

The CHECKS pattern implements behavioral issues because it describes the handling of input. The article has three sections “first section describes values as they should be captured by the user-interface and used within the domain model. The second and third sections discuss detecting and correcting mistakes, first during data entry and then after posting or publication.” The pattern is interesting because of the diverse range of ways the user can crash an input and how these cases can be avoided. I can definitely use this pattern in my code because user-interface is almost always part of many programs.
Ward Cunningham
Cunningham & Cunningham, Inc.
Portland, Oregon

Copyright (c) 1994, Ward Cunningham
All Rights Reserved
This document served by the Portland Pattern Repository

Link to this Page