Programming best practices ⚐
up:: Programming ⚐
A collection of common wisdom, mental models and best practices when writing code.
Tensions
- Programs should crash early versus Bad data should be handled gracefully
- Don’t repeat yourself versus Early abstraction makes programs more brittle
Practices
- Objects should handle their own methods
- Methods should state their intent in the name
- Only implement functionality when you need it
Principles
Quotes
The skill of programming is the skill of building programs that don’t confuse the programmer. – Eloquent JavaScript