Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 490 Design Patterns. Introduce Yourself Your name Your name What attracted you to this course? What attracted you to this course? Experience with Design.

Similar presentations


Presentation on theme: "CS 490 Design Patterns. Introduce Yourself Your name Your name What attracted you to this course? What attracted you to this course? Experience with Design."— Presentation transcript:

1 CS 490 Design Patterns

2 Introduce Yourself Your name Your name What attracted you to this course? What attracted you to this course? Experience with Design Patterns. Experience with Design Patterns. How would you define “Design Patterns” at this point. How would you define “Design Patterns” at this point. I’ll go first. I’ll go first.

3 Will this be a hard course? Why not? (sorry if that’s a disappointment) Why not? (sorry if that’s a disappointment) New material for me. New material for me. Exhaustion after two terms. Exhaustion after two terms. Mine (and probably yours). Mine (and probably yours). Freedom to explore. Freedom to explore. Spring is coming! Spring is coming! I will try to provide a framework in which you can productively learn a lot. I will try to provide a framework in which you can productively learn a lot. I will not spend much time “cracking the whip”. I will not spend much time “cracking the whip”.

4 My model Lewis and Clark Lewis and Clark A great book: Undaunted Courage by Stephen Ambrose. A great book: Undaunted Courage by Stephen Ambrose. None of us have been this way before. None of us have been this way before. I organize the expedition. I organize the expedition. We are all scouts, exploring and reporting on what we have seen. We are all scouts, exploring and reporting on what we have seen. Don’t know exactly where we will go or what we will see. Don’t know exactly where we will go or what we will see. It worked well for AOP. It worked well for AOP. If you don’t like this approach, take a different trip! If you don’t like this approach, take a different trip!

5 Things that influence your grade Project (which you propose and I approve). Project (which you propose and I approve). Class Participation (your presentations and otherwise). Class Participation (your presentations and otherwise). Focus group at end of term where I will ask you to sit down with others and discuss some course issues while I mainly listen. Focus group at end of term where I will ask you to sit down with others and discuss some course issues while I mainly listen. Perhaps a few specific homework assignments. Perhaps a few specific homework assignments. Journal of your course activities. Journal of your course activities. Day-by-day log of time spent and what you did. Day-by-day log of time spent and what you did. Reactions to things you have read. Reactions to things you have read. More details soon. More details soon.

6 The Blind Men and the Elephant by John Godfrey Saxe

7 It was six men of Indostan It was six men of Indostan To learning much inclined, To learning much inclined, Who went to see the Elephant Who went to see the Elephant (Though all of them were blind), (Though all of them were blind), That each by observation That each by observation Might satisfy his mind Might satisfy his mind

8 The First approached the Elephant, The First approached the Elephant, And happening to fall And happening to fall Against his broad and sturdy side, Against his broad and sturdy side, At once began to bawl: At once began to bawl: “God bless me! but the Elephant “God bless me! but the Elephant Is very like a wall!” Is very like a wall!”

9 The Second, feeling of the tusk, The Second, feeling of the tusk, Cried, “Ho! what have we here Cried, “Ho! what have we here So very round and smooth and sharp? So very round and smooth and sharp? To me ’tis mighty clear To me ’tis mighty clear This wonder of an Elephant This wonder of an Elephant Is very like a spear!” Is very like a spear!”

10 The Third approached the animal, The Third approached the animal, And happening to take And happening to take The squirming trunk within his hands, The squirming trunk within his hands, Thus boldly up and spake: Thus boldly up and spake: “I see,” quoth he, “the Elephant “I see,” quoth he, “the Elephant Is very like a snake!” Is very like a snake!”

11 The Fourth reached out an eager hand, The Fourth reached out an eager hand, And felt about the knee. And felt about the knee. “What most this wondrous beast is like “What most this wondrous beast is like Is mighty plain,” quoth he; Is mighty plain,” quoth he; “ ‘Tis clear enough the Elephant “ ‘Tis clear enough the Elephant Is very like a tree!” Is very like a tree!”

12 The Fifth, who chanced to touch the ear, The Fifth, who chanced to touch the ear, Said: “E’en the blindest man Said: “E’en the blindest man Can tell what this resembles most; Can tell what this resembles most; Deny the fact who can Deny the fact who can This marvel of an Elephant This marvel of an Elephant Is very like a fan! Is very like a fan!

13 The Sixth no sooner had begun The Sixth no sooner had begun About the beast to grope, About the beast to grope, Than, seizing on the swinging tail Than, seizing on the swinging tail That fell within his scope, That fell within his scope, “I see,” quoth he, “the Elephant “I see,” quoth he, “the Elephant Is very like a rope!” Is very like a rope!”

14 And so these men of Indostan And so these men of Indostan Disputed loud and long, Disputed loud and long, Each in his own opinion Each in his own opinion Exceeding stiff and strong, Exceeding stiff and strong, Though each was partly in the right, Though each was partly in the right, And all were in the wrong! And all were in the wrong!

15 So oft in theologic wars, So oft in theologic wars, The disputants, I ween, The disputants, I ween, Rail on in utter ignorance Rail on in utter ignorance Of what each other mean, Of what each other mean, And prate about an Elephant And prate about an Elephant Not one of them has seen! Not one of them has seen!

16 What do some who may be less blind than I say? What do some who may be less blind than I say? Most of these quotes are from James Cooper’s Java Design Patterns, a Tutorial, available via Safari On-line. Most of these quotes are from James Cooper’s Java Design Patterns, a Tutorial, available via Safari On-line.

17 "Design patterns are recurring solutions to design problems you see over and over." [Smalltalk Companion] "Design patterns are recurring solutions to design problems you see over and over." [Smalltalk Companion] "Design patterns constitute a set of rules describing how to accomplish certain tasks in the realm of software development." [Pree, 1994] "Design patterns constitute a set of rules describing how to accomplish certain tasks in the realm of software development." [Pree, 1994]

18 "Design patterns focus more on reuse of recurring architectural design themes, while frameworks focus on detailed design... and implementation." [Coplien and Schmidt, 1995] "Design patterns focus more on reuse of recurring architectural design themes, while frameworks focus on detailed design... and implementation." [Coplien and Schmidt, 1995] "A pattern addresses a recurring design problem that arises in specific design situations and presents a solution to it." [Buschmann and Meunier, et al., 1996] "A pattern addresses a recurring design problem that arises in specific design situations and presents a solution to it." [Buschmann and Meunier, et al., 1996]

19 "Patterns identify and specify abstractions that are above the level of single classes and instances, or of components." [Gamma, Helm, Johnson, and Vlissides, 1993] "Patterns identify and specify abstractions that are above the level of single classes and instances, or of components." [Gamma, Helm, Johnson, and Vlissides, 1993]

20 Textbook choice Most important and influential Patterns book? Most important and influential Patterns book? What do you think? What do you think? Gang of Four book Gang of Four book Why not use it as main textbook? Why not use it as main textbook? Most influential math books? Most influential math books? Most influential CS books? Most influential CS books?

21 How to use the textbook Don’t gloss over the Challenges. Don’t gloss over the Challenges. They are the most important part of the book. They are the most important part of the book. Don’t look at answers too quickly. Don’t look at answers too quickly. Do look at answers before you go on. Do look at answers before you go on. My experience. My experience. Had more trouble with early challenges than with late ones. Had more trouble with early challenges than with late ones. Read Foreword, Preface, and Chapters 1 and 2. Read Foreword, Preface, and Chapters 1 and 2.

22 Overview vs. example.

23 Video Richard Helm Richard Helm Write down Write down terms that need defining for you. terms that need defining for you. reactions reactions questions. questions.


Download ppt "CS 490 Design Patterns. Introduce Yourself Your name Your name What attracted you to this course? What attracted you to this course? Experience with Design."

Similar presentations


Ads by Google