Please enable JavaScript.
Coggle requires JavaScript to display documents.
Defensive Design - Coggle Diagram
Defensive Design
By using validation techniques a programmer can make their program
more robust
more user friendly
type check
Input is the correct data type
string
integer
boolean
real
range check
input is within the correct range
format check
input is in the correct format
code wont work if incorrect format is input
length check
input has the correct max/min number of characters
for example if a password is needed a certain length it will either be true if the length is correct or false if it is incorrect
presence check
some data has been entered
data needs to be entered for the program to work