When writing code, it is important to ensure that a programSequences of instructions for a computer. runs correctly and continues to run no matter what actions a user takes. This is done through planning for all possibilities and thinking about what a user may do that the program does not expect.
Designing robust programs encompasses three areas:
protection against unexpected user inputData which is inserted into a system for processing and/or storage. or actions, such as a user entering a letter where a number was expected
confirming that users on a computer system are who they say they are
minimising or removing bugAn error in a program.
This anticipation and protection is done through:
validationChecking input data is sensible and in the right format.
authenticationVerifying the identity of a user.
testingAn important part of computer programming which involves checking a program for errors.