Description and purpose of code indentation Flashcards
Description and purpose of code indentation
Move lines of code inside constructs in by a few spaces (tab) to show clearly which code is inside which construct
Purpose and examples of maintainability
- Create the system so that it can be easily maintained (changed, fixed, updated) by other people
- Add comments and indent code
How to anticipate misuse
Look at what people could do, and plan to restrict this, e.g. could they access data they shouldn’t ?
If so, plan to stop this by restricting the access
Purpose of authentication (defence design)
Only allow people with the correct username and password entry to the system
Purpose of system maintenance
Keeping a system running, e.g. correct errors, change its function, make it more efficient
Description and purpose of code comments
Text added to a program, which is not run, that explains the purpose/function of sections of code
Purpose of testing
- To make sure a system works as intended
* To make sure a system is robust (cannot be easily broken)
Purpose of planning for contingencies
Plan what happens if something goes wrong, e.g. an error occurs or unexpected data is input, and how data will be recovered