DOC PREVIEW
Duke CPS 108 - Lecture

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Software Design5.1Basic and Power Tools(Pragmatic Programmer, Chapter 3)z Choose one editor and know it wellYou need to be proficient. Simply typing linearly and using a mouse to cut and paste is not enough. You just can't be as effective that way as you can with a powerful editor under your fingers.z Configurable, Extensible, Programmablez Syntax highlighting, auto-completion, boilerplate, auto-indent, IDE-like features (compile,run)Using notepad is like using a teaspoon as a shovel—simply typing and usinb basic mouse-based cut and paste is not enough.Software Design5.2Use Source Code Controlz Good user interfaces have an UNDO feature, preferably multiple levels of undo, redo¾ How do we get this with our programming efforts?¾ Source control, configuration managementz Once a program is released, what's next?¾ Work on next version¾ Work on bug fixes¾ How to do these simultaneously? Branch source treez How does more than one person work on same program?¾ CVS, concurrent versions systemSoftware Design5.3Debuggingz Origin of word bug¾ That's not a bug, that's a feature¾ Call it an error, a mistake, a fundamental flaw, …z Debugging as problem-solving¾ Don't cast blame, find and fix the bug¾ Resist myopia: don't eliminate symptoms, fix the bugz What code to fix?¾ Compile a clean version, how?z How to fix? Use debugger, code walk-through, eyeballs¾ Read documentation (select system call is broken)Software Design5.4Great Programmingz Everyone else does bad programmingz Everyone else does good programmingz Everyone does mediocre programmingz What is great programming?z What is bad


View Full Document

Duke CPS 108 - Lecture

Download Lecture
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?