View this PageEdit this PageAttachments 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 - Elliott Clark

Discussion 2 - Elliott Clark

Describe the Portland Form. Why it is useful?

Portalnd form is a narative form of describing an algorithm. It uses purely narative form to describe the process of a design pattern. Rather than using symbols and sudo code portland form uses everyday english to describe the inner workings. It is useful because understanding a design pattern in Portland form doesn't require understanding the language it is written in since narrative sentences are used. Also it allows a more free flowing explanation of when to use the design pattern and when not to.

References:
http://c2.com/ppr/index.html
http://g.oswego.edu/dl/pd-FAQ/pd-FAQ.html
http://c2.com/ppr/about/portland.html




Describe an Interesting Pattern

The factory design pattern consists of a factory that is a separate class that contains methods to instantiate new classes of a different type. For example a factory that generates reports of some kind would probably have a function to create a new report. That function would instantiate classes for the statistics and verbal part of the report. Together these classes would be a report class, all generated by the report generator.

This is a very useful design pattern for creating objects that are conglomerations of smaller objects and for having a central place that keeps track of all of the objects of one type that have been created. I do think I will use it since one of the examples given by the reference below applies directly to creating new pages and adding them to a book. And after adding them being able to keep track of all of the pages.

References:
http://www.dofactory.com/Patterns/PatternFactory.aspx

Link to this Page