Articles

Live & Learn: When a wrong program works

Published:
2015-12-01
Author
View
Keywords
License

Copyright (c) 2015 Tibor Gregorics

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

How To Cite
Selected Style: APA
Gregorics, T. (2015). Live & Learn: When a wrong program works. Teaching Mathematics and Computer Science, 13(2), 195-208. https://doi.org/10.5485/TMCS.2015.0393
Abstract
In this paper an interesting and surprising case study of my programming education practice is presented. This case underlines the importance of methods, standards and rules of thumb of the programming process. These elements of the programming technology can be taught well in education and they can guarantee the quality of the implemented programs. However the case described in this paper brings an anomaly when a programming standard is violated during the programming process and, although it should imply that the implemented program code works badly, the program works perfectly. This anomaly is caused by a typical implementation problem: the boundary and rules of the machine representation of numbers. This anomaly is going to be analyzed and the appropriate conclusions of our case study will be deducted.