Zusammenfassung der Ressource
2.3 Robust Programs
- Data Validation
- Doesn't make data
inputs accurate
- Checks that inputted data
is sensible and reasonable
- Types of Validation
Techniques
- Range
- Any value between x & y
- Verification
- Makes data accurate
- e.g. Dual Entry Passwords
(typing the password in twice)
- Presence Check (*)
- Required fields which need inputted data
- e.g. Needing an age or gender
- Test Data
- Normal
- Any value within range e.g. 7, 8, 9, 10,11
- Extreme
- Starting and end point of range e.g. 7, 11
- Eroneous
- Beyond Range (not sensible) e.g. 6, 1.5
- Data which has been
specifically identified for
use in tests
- Data Sanitisation
- Reduces inputted waste
- Makes sure the inputted data
can be processed (changing
numbers into integers)
- Authentication
- The plan when entering a
password and username
- Security Procedures
- How many entries of password until locking
- Maintainablity
- Maintaining System Coding
- Updates for Coding
- Comments
- Comments done by users left
in the coding to help other
people to maintain the system
- Indents
- Organisation of Coding
- Makes it easier for people
to look and read the code
- e.g. Spaces in between code
- Testing
- Tests in Coding
- Two Types
- Iterative
- Test as you go along
- Constantly checking coding
- Final/Terminal
- Tests/checks done at the end
- Tests you've identified
can be done by:
- Client - Person who
provides the reqiuirement
- User - Maintains
the System
- Audience -
Uses/Views the code
- Three types of coding errors
- Runtime - Computer runs out of memory/no
space on RAM (nothing wrong with coding)
- Syntax - Grammar Errors in coding
- Logic - True or False functions