Principles of Programming and Software Engineering Chapter 1

  • Slides: 6
Download presentation
Principles of Programming and Software Engineering Chapter 1 CS 308 Chapter 1 -- Principles

Principles of Programming and Software Engineering Chapter 1 CS 308 Chapter 1 -- Principles of Programming and Software Engineering

n CS 308 The Life Cycle of Software Chapter 1 -- Principles of Programming

n CS 308 The Life Cycle of Software Chapter 1 -- Principles of Programming and Software Engineering 2

Design Guidelines n 1. 2. 3. 4. 5. 6. CS 308 Use OOD and

Design Guidelines n 1. 2. 3. 4. 5. 6. CS 308 Use OOD and TDD together to produce modular solutions. That is, develop abstract data types and algorithms in tandem Use OOD for problems that primarily involve data Use TDD to design algorithms for an object’s operations. Consider TDD to design solutions to problems that emphasize algorithms over data. Focus on what, not how, when designing both ADT’s and algorithms Consider incorporating previously written software components into your design Chapter 1 -- Principles of Programming and Software Engineering 3

n UML diagram for the class Clock CS 308 Chapter 1 -- Principles of

n UML diagram for the class Clock CS 308 Chapter 1 -- Principles of Programming and Software Engineering 4

Six Key Programming Issues 1. 2. 3. 4. 5. 6. CS 308 Modularity Modifiability

Six Key Programming Issues 1. 2. 3. 4. 5. 6. CS 308 Modularity Modifiability Ease of Use Fail-Safe Programming Style Debugging Chapter 1 -- Principles of Programming and Software Engineering 5

Eight Issues of Style 1. 2. 3. 4. 5. 6. 7. 8. CS 308

Eight Issues of Style 1. 2. 3. 4. 5. 6. 7. 8. CS 308 Extensive use of functions Use of private data members Avoidance of global variables and functions Proper use of reference arguments Proper use of functions Error handling Readability Documentation Chapter 1 -- Principles of Programming and Software Engineering 6