Data Quote by Alan Perlis
“It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures.”
About This Quote
Source Book: "Programming Languages", 1972
A single data structure with many functions is simpler than many structures with few functions.
In simple terms: Use one data model for many operations.
Design unified data structures.
Themes
Mood
Type
When to use this quote
- API design
- database schema
- code refactoring
- system architecture
Key Concepts
Questions to Reflect On
- How does your data model affect code maintenance?
- When is a single structure insufficient?
Complex data may need multiple structures for performance.