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
2 - What Are Good Programs?
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
To be considered good, a program needs to do what it is supposed to do. The next most important property is that it should be clearly understandable by a human reader, because that is necessary when you want to improve it in any way. More controversial is the question of whether a good program must be concise. As a student you will naturally want to get high marks. Finally, anyone who writes programs needs to be aware of ethics.
- Type
- Chapter
- Information
- How to Write Good ProgramsA Guide for Students, pp. 9 - 11Publisher: Cambridge University PressPrint publication year: 2020