Why principles matter
A program that works isn't necessarily a good program. Real programs are read, fixed and changed for years, often by people who didn't write them.
The spec lists four principles of good programming:
| Principle | The question it asks |
|---|---|
| Readability | Can someone else understand the code quickly? |
| Extensibility | Can new features be added easily? |
| Maintainability | Can the code be fixed, updated and tested easily? |
| Modularity | Is the program split into self-contained parts (subroutines)? |
They support each other: modular code is easier to read; readable code is easier to maintain; well-structured code is easier to extend.