Presentation is loading. Please wait.

Presentation is loading. Please wait.

Designing Software.

Similar presentations


Presentation on theme: "Designing Software."— Presentation transcript:

1 Designing Software

2 Designing Software What have we learned?

3 Designing Software What have we learned? Computers are totally literal

4 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing

5 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks

6 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer

7 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information

8 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details

9 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

10 Designing Software What have we learned? Computers are totally literal

11 Designing Software What have we learned? Computers are totally literal
They do EXACTLY what you tell them to do

12 Designing Software What have we learned? Computers are totally literal
They do EXACTLY what you tell them to do They do ONLY what you tell them to do

13 Designing Software What have we learned? Computers are totally literal
They do EXACTLY what you tell them to do They do ONLY what you tell them to do They make absolutely NO assumptions

14 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing

15 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Look for steps that are repeated

16 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Look for steps that are repeated Look for complicated sub-tasks that could be considered on their own

17 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Look for steps that are repeated Look for complicated sub-tasks that could be considered on their own Name the function something meaningful

18 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks

19 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true

20 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true Loop UNTIL a condition is met

21 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true Loop UNTIL a condition is met Great opportunity to use functions

22 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer

23 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if …

24 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest…

25 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if …

26 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if … What if get a match on more than one if ?

27 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if … What if get a match on more than one if ? What if handing the match changes what you are using to do following matches?

28 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information

29 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information

30 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information You can find out what is in the bucket … read the variable

31 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information You can find out what is in the bucket … read the variable You can put new info in the bucket … write the variable

32 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details

33 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Start with general, then go to specific

34 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Start with general, then go to specific Don’t dive into the details until you know the basics of how you’ll do it

35 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

36 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best Analyze how you would do it … your brain is very efficient

37 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best Analyze how you would do it … your brain is very efficient Find a similar but simpler problem to analyze

38 Designing Software What have we learned? Computers are totally literal
Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

39 Clear and Unclear Windows


Download ppt "Designing Software."

Similar presentations


Ads by Google