I just stumbled upon this tweet-shaped nugget of wisdom on Jason Gorman's Twitter feed and thought I'd share it.
8 qualities of maintainable code:
- Can be (re-)tested quickly
- Is easy to understand
- Low duplication
- Made of simple parts...
- That do one job...
- And barely know each other...
- With swappable dependencies...
- And client-specific interfaces
Read every point out loud, think about the code you're just working on, and let it sink in.