Techniques used in developing well-written code• the use of good programming practice, including: - – a clear and uncluttered mainline
- – one logical task per subroutine
- – use of stubs
- – appropriate use of control structures and data structures
- – writing for subsequent maintenance
- – version control and regular backup
- – recognition of relevant social and ethical issues
• the process of detecting and correcting errors, including: - – types of error
- - syntax errors and logic errors
- - runtime errors, including arithmetic overflow, division by zero, accessing inappropriate memory locations
- – methods of error detection and correction
- - use of flags
- - methodical approach to the isolation of logic errors
- - use of debugging output statements
- - peer checking, desk checking, structured walkthrough
- - comparison of actual with expected output
• the use of software debugging tools, - including use of breakpoints,
- resetting variable contents,
- program traces, single line stepping
|