Abstract

Ways to reduce careless programming errors were investigated. Non-programmers learnt to write nested conditional programs in one of three conditions: an Automatic syntax condition, in which syntactic errors were impossible because programs were made up from whole syntactic constructions rather than from single words; a Procedural condition, in which programs were written word by word as usual, but a well-defined procedure was prescribed to help subjects write nested conditionals correctly; and a Plain condition resembling standard programming tuition, in which subjects were told the structure of the language but were given no guide to help in writing. Significantly more error-free programs were written in the Procedural condition than in the Plain condition, showing that explicit procedures can improve programming success, at least in these conditions. In the Automatic condition the success rate was still higher, showing that the procedure we used could still be improved. These results, and the outcomes of further analyses, bear on recommendations by the “structured programming” school to follow explicit procedures when writing programs, and also on previous work on the design of easily-used programming languages.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call