Chapter 10 Implementation and Testing Flashcards
1
Q
Coding Standards
A
- Coding not only needs to do its job well, but also must be easy to add, maintain, and debug
- A coding standards document tells developers how they must write their code
2
Q
Why do we need coding standards
A
- Consistent look
- Improve readability
- Simplifies copying, editing, maintenance
- Company wide standardisation
3
Q
Principles of Good Programming
A
- KISS keep short and simple
- DRY - don’t repeat yourself
- abstraction
- open/close
- single responsibility principle
- minimise coupling
- maximise cohesion
4
Q
Code Smells
A
- Duplicated code
- Large classes-
- Long methods
- Long parameter list
5
Q
Refactoring
A
- Improve software internal structure in a safe way while not changing / adding / removing behaviours
6
Q
Software Testing
A
- Testing is the process of exercising a program with the intent of finding errors
- Each function must be tested to make sure it functions well
7
Q
Types of Testing
A
Unit Testing
- Testing of an individual program
Integration Testing
- Testing two or more programs that depend on each other to ensure
System Testing
- Verify all system components are integrated properly and actual processing situations will be handled correctly
8
Q
Test Plan
A
- Used as a guide to test software
- Uses ‘dummy data’ (sample data)
- Prepared by ‘software testers’