16
Excellence is a Excellence is a Habit Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

Embed Size (px)

Citation preview

Page 1: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

Excellence is a HabitExcellence is a Habit

Feb 3 2003

Lecture 14

We are what we repeatedly do. Excellence, then, is not an act, but a

habit.” - Aristotle

Page 2: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 2

Outline

Previous Business– Midterm examination results– Homework results

New Business– Structure of course changing– Moving from large “Project-centered” approach

(although still available as extended case study)– Moving to smaller, more-focused “caselets” that will

build towards single application

Page 3: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 3

First the fun stuff…

Page 4: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 4

More fun stuff…

Page 5: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 5

Last fun stuff…

Page 6: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 6

Now the midterm details

20% of your final grade Average: 64 ± 13

– < 51 9– 51-60 9– 61-75 13– > 75 11

-1

0

1

2

3

4

5

6

7

0 5 10 15

Series1

Page 7: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 7

Downloads

0 100 200 300 400

1/9/03

1/16/03

1/23/03

1/30/03L1

L2

L3

L4

L5

L6

L7

L8

L9

L10

L11

L12

L13

• Roughly 50% of lecture downloads in four days

Page 8: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 8

Downloads

0 20 40 60 80 100 120 140 160

hw1_q4b

Jan13Example.jar

Jan14Example.jar

Jan20_Hw1_q1

Jan20_Hw1_q1

p1-p5.jpg

visitor.zip

visitorFinal.zip

• Only six downloads of visitor?

Page 9: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 9

Analysis

Students have not been given enough opportunities to excel

Students must take ideas from the readings and lectures into weekly activities

Study habits based on directed questions– Come up with your own: don’t wait for me– Focus on consequences and implementation

issues

Page 10: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 10

Midterm postmortem

Review for content, math errors Problems? See me in my office hours

Page 11: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 11

HW1 & HW2 postmortem

TAs report only 3 students showed up I’ve seen no more than 3 students When should you attend office hours?

– After a HW has been graded and returned– While working on a HW– When a topic is not clear from lecture

Page 12: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 12

Homework 3: Question 1

Forward Containment & Visitors

Tests your understanding of Visitor

Part

SubPart

1

*

Page 13: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 13

Handouts today

GOF: Singleton Design Pattern GOF: Visitor Design Pattern GOF: Factory Method Pattern

Page 14: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 14

Abstract Factory

Intent– Provide an interface for creating families of

related objects without specifying their concrete classes

Motivation– The new operator should never be placed

within a series of forked if statements.

Page 15: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 15

Small Examples

Only partially useful (since scaling not immediately apparent).

US Factory Japanese Factory

Page 16: Excellence is a Habit Feb 3 2003 Lecture 14 We are what we repeatedly do. Excellence, then, is not an act, but a habit.” - Aristotle

February 3 2003 Lecture 14 16

Tuesday Assignment

HW3– Get started. Download the sample code. Run

it.

Review Abstract Factory & Factory Method