Principles catalog
Principles are general ideas. They explain why you do things a certain way, that is, they explain patterns. Take the sewing and woodworking pattern "measure twice, cut once." Why do that? Because of the principle "materials are expensive, and shouldn't be wasted." (OK, that's a pretty obvious principle.)
Here are principles on this website.
Title | Summary | Tags | Where referenced |
---|---|---|---|
Decomposition | Break a task into smaller tasks, do each smaller task, and put them back together. |
Multiway | |
Incremental testing | Write a little code, then test it. Write a little more code, then test it. |
Debugging | Easy is good |
Read code actively | When code doesn't work, the first thing to do is carefully read through the code. |
Debugging | Debugging |
Working backwards | Start by understanding a program's goal, then work backwards. |