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
Reduce cognitive complexity

Make your program easy to think about. You'll spend less time wrestling with bugs.

Reuse

Reuse your code across programs, using functions and page components.

Think about program structure

When you get a new task, don't get hung up on all the deets. Look for the structure underneath.

Structure diagrams
Work backwards

Start with the end.