Using Real Code to Teach Good Programming Practices

Rafael Durelli, Renato Cordeiro Ferreira, Alfredo Goldman

Research output: Chapter in Book/Report/Conference proceedingConference contributionScientificpeer-review

Abstract

“Talk is cheap. Show me the code”. Using real code examples is a way of engaging students while teaching Software Engineering. By applying this technique, this paper describes the experience of introducing good development practices in the course “Programming Techniques II”, offered for students of the Bachelor in Computer Science of the Institute of Mathematics and Statistics of the University of São Paulo (IME-USP). At the beginning of the course, students received two exercises: in the first, each student should present a code snippet that they consider well written; in the second, a code snippet that they consider problematic. The snippets were then analyzed in the classroom – with active participation of the students – to map good and bad practices. This process was repeated until reaching theoretical saturation. In the end, the discussions converged on many techniques used to write clean code, thus validating the use of a constructive approach to teach good development practices.
Original languageEnglish
Title of host publicationProceedings of the XXI Brazilian Symposium on Software Quality
DOIs
Publication statusPublished - 7 Nov 2022

Fingerprint

Dive into the research topics of 'Using Real Code to Teach Good Programming Practices'. Together they form a unique fingerprint.

Cite this