Research output

Technical Report ()

Defensive C++: Programming Guidelines for those who dislike Debugging

Citation
Swan J (2012) Defensive C++: Programming Guidelines for those who dislike Debugging. Computing Science and Mathematics. University of Stirling. CSM Technical Reports, CSM-194. University of Stirling, Department of Computing Science and Mathematics.

Abstract

C++ has a reputation as a difficult and complex language in which one can achieve anything, but with an attendant risk of (what is politely termed) 'undefined behavior' when practiced by the uninitiated.

We offer guidelines that are intended to eliminate common causes of systemic and hidden error (e.g. ignorance of copy-assignment semantics) and also describe a number of practices that facilitate both design robustness and 'programming in the large'.

StatusPublished
AuthorsSwan Jerry
Number of pages39
Title of seriesCSM Technical Reports
Number in seriesCSM-194
Publication date11/2012
URLhttp://www.cs.stir.ac.uk/…TR%20CSM-194.pdf
PublisherUniversity of Stirling, Department of Computing Science and Mathematics
ISSN of series 1460-9673
LanguageEnglish
© University of Stirling FK9 4LA Scotland UK • Telephone +44 1786 473171 • Scottish Charity No SC011159
My Portal