Abstract

In this article, we present an approach to critiquing and correcting novice programs that “work” (that is, they have correct I/O behavior for all input from the problem space), but are poorly constructed. Poorly constructed working code is often produced by beginning programming students, and it is important but difficult to teach them why some working code is better than others. Traditional explanations of these problems often rest on some kind of efficiency principle. We shall argue that using efficiency as a guiding principle in critiquing working code is inappropriate for novice programmers. Instead, we develop an approach to critiquing working but poorly constructed novice programs based on the principle of program readability. That is, we base our critique of working code on its ability to communicate to program readers.

Full Text
Paper version not known

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