Book contents
- Frontmatter
- Contents
- 1 Introduction
- 2 What Are Good Programs?
- 3 How to Get Started
- 4 How to Understand Your Language
- 5 How to Use the Best Tools
- 6 How to Make Sure You Don’t Lose Your Program
- 7 How to Test Your Program
- 8 How to Make Your Program Clear
- 9 How to Debug Your Program
- 10 How to Improve Your Program
- 11 How to Get Help (without Cheating)
- 12 How to Score Well in Coursework
- 13 How to Score Well in a Programming Exam
- 14 How to Choose a Programming Language
- 15 How to Go Beyond This Book
- Bibliography
- Index
6 - How to Make Sure You Don’t Lose Your Program
Published online by Cambridge University Press: 10 July 2020
- Frontmatter
- Contents
- 1 Introduction
- 2 What Are Good Programs?
- 3 How to Get Started
- 4 How to Understand Your Language
- 5 How to Use the Best Tools
- 6 How to Make Sure You Don’t Lose Your Program
- 7 How to Test Your Program
- 8 How to Make Your Program Clear
- 9 How to Debug Your Program
- 10 How to Improve Your Program
- 11 How to Get Help (without Cheating)
- 12 How to Score Well in Coursework
- 13 How to Score Well in a Programming Exam
- 14 How to Choose a Programming Language
- 15 How to Go Beyond This Book
- Bibliography
- Index
Summary
Few things are more frustrating than constructing a program that is almost correct, only to lose it at the last minute through a mistake. This chapter discusses manual processes for undoing mistaken edits and for saving your best program so far, and how to take the next step to using a version-control system or configuration management system. It also covers how to manage code that you have written that is not useful right now, but may be so later.
- Type
- Chapter
- Information
- How to Write Good ProgramsA Guide for Students, pp. 55 - 67Publisher: Cambridge University PressPrint publication year: 2020