5D: developing standard subroutines for reuse Flashcards

1
Q

what to think about when designing

A

is the code generic?
- generic solutions: requires minimal changes for new projects

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

three common subroutines to consider

A
  1. data validation
  2. login processes
  3. conversion between date formats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

data validation

A

a process which will conduct an analysis on user inputs according to validation rules appropriate to the particular variable and context
- if data invalid, correction action required
- for software without this: often causes runtime errors

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

login processes

A

a process which authenticates users
- authentication: the process of identifying a user using known information

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

conversion between date/time format

A

date/time formats: usually stored as double precision floats
- whole number part: number of days since 30/12/1899
- decimal portion: represents fraction of a day that has elapsed

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