Slides0415 - Introduction to Object-Oriented Design...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Object-Oriented Design
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Objectives Intro to Design - First principles, examples Intro to OO design - You can get master’s degrees and six- figure salaries for this; this is an introduction . Intro to OO Patterns and Architecture - If we have time
Background image of page 2
Design Object-Oriented Design is one of many ways to design programs It’s important to consider it in the larger context of design General design principles can be applied to programs, through objects.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Basic Design Principle Job description of a designer: You make the right thing easy to do, and you make the wrong thing difficult.
Background image of page 4
Doors Ever walked up to a door, tried to push to open it, only to walk into it, because you should’ve pulled it? Or vice versa? Bad door! Made the right thing difficult; hard to figure out.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Good Doors
Background image of page 6
Bad Doors This is a door that you have to push open. Almost everyone pulls it, instead.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Affordances When an object (in programming or real- world) can do something, we say it has an “affordance” to do it, or alternatively, it “affords an action”. Some refer to an affordance as an “action possibility”. This is a psychologist’s terminology.
Background image of page 8
Bad design Bad design is when perceived affordances are different from actual affordances . Like when you perceive a door to push open, but it’s actually pulling open.
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Program design Program design is the art, science, and craft of designing affordances for yourself and other programmers. Object-oriented design is one of the most popular ways to do this.
Background image of page 10
Affordances come up closely with what we, as humans, expect in the real world. Car objects, Cat objects, Lolcat objects,
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2010 for the course CS COP 3330 taught by Professor Douglass during the Spring '09 term at University of Central Florida.

Page1 / 31

Slides0415 - Introduction to Object-Oriented Design...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online