CHAPTER 8: Implementation AND TESTING Flashcards
what should Coding Standards do and the definition
Code not only needs to do its job well, but must also be easy to add to, maintain and debug.
A coding standards document tells developers how they must write their code.
Why do we need coding standards?
Consistent look
Improve readability
Simplifies copying, editing and maintenance
Company wide standardization
Principles of Good Programming
KISS – Keep It Short and Simple
DRY - Don’t Repeat Yourself
Abstraction
Open/Closed Principle Software entities should be open for extension, but closed for modification.
Principles of Good Programming
Single Responsibility Principle - A component of code (e.g. class or function) should perform a single well defined task.
Minimize Coupling- Any section of code should minimize the dependencies on other areas of code.
Maximize Cohesion - Code that has similar functionality should be found within the same component
Software Testing
Testing is the process of exercising a program with the specific intent of finding errors prior to delivery to the end user.
what is Desk checking ?
the process of reviewing the program code to spot logic errors, which produce incorrect result
what is Unit Testing and the objective of it
The testing of an individual program or module
Objective is to identify and eliminate execution errors that could cause the program to terminate abnormally, and logic errors that could have been missed during desk checking
what is Integration Testing
Testing two or more programs that depend on each other to make sure that the programs work together properly
what is System Testing
Verify that all system components are integrated properly and that actual processing situations will be handled correctly
Confirm that the information system can handle predicted volumes of data in a timely and efficient manner
Test Plan
Used as a guide to test software.
Uses ‘dummy data’ (sample data)
Usually prepared before software is built
Prepared by ‘software testers’