Maintainability And Testing
No description yet. This curated deck is ready for daily study.
Card preview (11)
4 things to make a program maintainable
• Comments allow different programmers to investigate and understand the code. • Indentation creates a layered approach to the code, showing that bits of code that line up with each other link together. • Sub-Programs make the program easier to read and understand • Naming Conventions help programmers understand the code at a quick glance e.g separate words in identifiers using an underscore
Testing
The process of ensuring a solution works correctly and the way it should work.
What does testing allow us to do?
• Find faults in programs which can be rectified
Iterative Testing -
• Involves testing a solution throughout its development.
Advantage of iterative testing
• Allows us to test small sections of code one bit at a time. • This means it makes it easier to spot errors and fix them
Disadvantages of iterative testing
• Can take up time in development
Terminal/Final Testing
• Involves testing the whole solution once the development is complete.
Advantage(s) of Terminal Testing
• Saves time during development
Disadvantage of terminal testing
• Makes it difficult to spot errors.
Example of invalid data
DOB as a day in future
Example of boundary data
Number between 1 and 100 and user inputs 100