Code Quote by Brian Kernighan
“Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot easier to work with”
About This Quote
Separate irregular data handling from core logic to simplify programming and improve maintainability.
In simple terms: Keep data messy, code clean.
Isolate complexity in data, not code.
Themes
Mood
Type
When to use this quote
- database design
- API development
- data pipelines
Key Concepts
Questions to Reflect On
- How can you identify which parts belong in data versus code?
- What tools help keep code simple?
If data becomes too irregular, code may still become complex.