introduction to design. what is design? blueprint of your solution blueprint of your solution all...

10
Introduction to Introduction to Design Design

Upload: myra-hawkins

Post on 28-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Introduction to DesignIntroduction to Design

Page 2: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

What is Design?What is Design?

Blueprint of your solutionBlueprint of your solution All decisions you have made about All decisions you have made about

solution?solution? RepresentationsRepresentations

Source CodeSource Code CommentsComments Pictures, Figures & TextPictures, Figures & Text

Instructor: G. Rudolph, Summer 2008 2

Page 3: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 3

Where should I be?Where should I be?

Completed Sumobot [Example] Mechanical Model with modifications Code should control the drive motors

smoothly, light sensor detects boundaries, Ultrasonic sensor detects opponent

Page 4: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 4

Where should I be?Where should I be?

“To Be Completed” (90%) Clean up code Comments in code Document

Hardware Design Software Design

Page 5: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 5

Code CleanupCode Cleanup

May have borrowed code and modified it

Now we have to “make it ours” Show that we understand it Make sure everything is clear

Want the code to match our design, whether or not the design is Documented, or In our heads

Page 6: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 6

Code CleanupCode Cleanup

Make sure Object, Method, and variable names match our application

Add/ Update Comments to match our application & style

Compile and run periodically to make sure everything still works

Remove any commented blocks of code Remove unused code

Variables, methods, objects

Page 7: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 7

CommentsComments

Enough that you can remember what it is you were doing and thinking, if you had to maintain the code 6 months from now

Comments for Class Each method Variables Lines of code as needed

Page 8: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 8

Hardware DesignHardware Design

Assume the reader (me) has access to the Lego Set and the model books

Describe what you added or changed Assemblies may be difficult to put into

words without the aid of pictures Do your best Assume you can show them the parts you are

using

Page 9: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 9

Software DesignSoftware Design

3 things to show1. Objects2. Their INTERESTING

interrelationships3. Their behaviors

Page 10: Introduction to Design. What is Design? Blueprint of your solution Blueprint of your solution All decisions you have made about solution? All decisions

Instructor: G. Rudolph, Summer 2013 10

Where is the Design?Where is the Design?

Comments in code are closest to the code

Pictures (or equivalent models) can Give “the big picture” Help communicate important details

in ways that are difficult to see from code