2.3-defensive design and input validation Flashcards

1
Q

what is defensive design?

A

Programmers designing their programs in a way to eliminate as much insensible inputs as possible to make program robust as possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is authentication?

A

To sign in we need a username to
check if the user has an ‘account’. We need a password to check if the user is really who they say they are. This is known as the authentication of the user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is input validation?

A

process of making sure that input data meets certain criteria.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In defensive design what does the programmer try to do?

A

anticipate the possible inputs,
ensure that the program caters for all possible
inputs

ensure the program rejects inputs that would
cause it to malfunction,
produce error messages to guide the user to
the correct type of input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly