Duke CPS 108 - Toward a Design/Programming Methodology (8 pages)

Previewing pages 1, 2, 3 of 8 page document View the full content.
View Full Document

Toward a Design/Programming Methodology



Previewing pages 1, 2, 3 of actual document.

View the full content.
View Full Document
View Full Document

Toward a Design/Programming Methodology

25 views


Pages:
8
School:
Duke University
Course:
Cps 108 - Software Design and Implementation

Unformatted text preview:

Toward a Design Programming Methodology Although you must write code you shouldn t be thinking about code when you first start thinking about solving a problem Analysis Design Implementation but spiral through them don t use the waterfall model Analysis investigation of problem not a solution for 108 problems there is little no analysis but for open ended problems in business there are lots of people to talk to issues to investigate Deliver a set of requirements as the outcome of the analysis Design Logical OO objects that help realize a solution to the problem concentrate on classes and behavior not on state eventually will need to get to state but not at first Duke CPS 108 5 1 Use Cases From Analysis to Design How will someone use the program What are typical scenarios Users have different roles outside entities interact with the program but also objects within the program interact with other objects Give scenarios a description and provide a paragraph that describes the user system interactions Use cases scenarios can be done formally or informally but you need to think about how the system works From use case proceed to design of classes Nouns are classes verbs are methods member functions Brainstorm throw things out revisit analysis get to state only at the end Duke CPS 108 5 2 Example WOOFII in action How does user interact with system Are there any issues in terms of user expectations of the system Why Fast or small Possible additions to the system Is it worth thinking about this from an OO viewpoint or is this main two functions and that s it Suppose you have a class WordsInaFile can this be used if specs change to do words in all files in a directory WordCollection vs WordsInaFile Operations on WordCollection objects Should the readFile method sort objects Why Alternatives Duke CPS 108 5 3 WOOFII classes and maybe KWIC classes Similarities Differences Is a word a string Time vs space What about repeated words on a line in both programs Keep in mind Open



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Toward a Design/Programming Methodology 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 Toward a Design/Programming Methodology 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?