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 - Tom Filip

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

Creational design patterns are mechanisms that deal with object creation in a manner suitable to the situation. Without the control of the creational design, the object creation could result in problems or added complexity. Behavioral design patterns identify common communication patterns between objects and realize these patterns. That way, there is increased flexibility in communication. Structural design patterns ease design by identifying a way to realize relationships between entities.

http://en.wikipedia.org/wiki/Design_pattern_(computer_science)

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?

For example, the Command pattern is a behavioral design pattern, where objects are used to represent actions, where the pattern includes the action and its parameters. This is an elegant way of handling GUI interaction, for example. It can also be used in a multi-level undo, progress bar, etc. Itís interesting to me and makes perfect sense, because I have utilized this pattern in 2335, where it came to be useful, if not necessary. I would not hesitate to use this pattern further in this class, if opportunity allows it.

http://en.wikipedia.org/wiki/Command_pattern

Links to this Page