Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. How To Program.

Similar presentations


Presentation on theme: "Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. How To Program."— Presentation transcript:

1 Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. How To Program

2 Agile Design Process Frequently revisit earlier steps.

3 The design process starts here! Could be "Create for yourself" or "Meet client's needs." Define the Objective Things to Do Refine any objectives if unclear. Ask questions! Time here saves time later.

4 Some tasks are too large to think about at once. Form simple tasks. Break Down Complex Goals!

5 Write pseudocode. Make a flow chart or sketch. Strategize

6 Create a Skeleton Outline with skeleton comments. Meta-information (author, date, problem description) can be included here. It has to go somewhere!

7 Flesh Out Your Skeleton Fill in code between or next to the skeleton comments.

8 Flesh Out Your Skeleton A tracer is a temporary code designed to connect big pieces. Code small bits and test frequently. Reconsider problem definition and strategy when roadblocked. Add comments to explain tricky steps. Add headers for larger chunks.

9 Review Code Make sure what you’ve written is actually accomplishing your design goals. Frequently try to break code into shorter chunks that are more simple, clear, and/or more modular. Modular code can be reused later.

10 Avoid Duplicating Code If code appears twice, try to modify to appear once but function twice. Appears twice Appears only once

11 Beg, Borrow... But Don’t Steal Check online for similar code and incorporate it appropriately.

12 Help Documentation Right-click to get selection menu. Choose “help”

13 Debugging Retain code with “copy-disable-modify”. “De-Capped” old code New code to test

14 Debugging Save frequently. Name with version number.

15 Debugging Monitor values of variables during execution. Scripts panel Shows x, y, and direction values Only for selected sprite

16 Debugging Monitor values of variables during execution. On-stage monitors Add as many as you like “Check” the variable to monitor Visible on stage


Download ppt "Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. How To Program."

Similar presentations


Ads by Google