Why Developers Fail at Data Modeling (And How to Fix It)
These articles are AI-generated summaries. Please check the original sources for full details.
Why You Suck at Structuring Data And How to Finally Get Better
Developers often model data after UI components, not business logic. This leads to fragile APIs that break with every design change. For example, a single JSON blob combining user, orders, and stats becomes unusable across multiple frontends.
Why This Matters
UI-driven data modeling creates “blob APIs” that mix unrelated concepts, making systems brittle. When UIs change weekly and business rules change yearly, APIs built on UI assumptions break frequently. The cost? Repeated refactors, inconsistent data, and APIs that fail to scale beyond their initial use case.
Key Insights
- “UIs change weekly. Business rules change yearly.” – Cédric Pierre, 2025
- “Entities = truth of business. Projections = reshaped data for use cases”
- “Flat, normalized data outperforms deeply nested structures in all frontend frameworks”
Working Example
{
"user": {
"id": 123,
"name": "John Doe"
},
"orders": [
{"order_id": "A1B2C3", "amount": 99.99}
],
"permissions": ["read", "write"],
"stats": {"total_orders": 5}
}
(This “blob API” fails when used in mobile apps or analytics pipelines.)
Practical Applications
- Use Case: A SaaS company using normalized entities and projections for mobile, web, and partner integrations
- Pitfall: Merging user profile, permissions, and analytics data into one response causes duplication and fragility
References:
Continue reading
Next article
Introducing swift-huggingface: The Complete Swift Client for Hugging Face
Related Content
Mastering RESTful Architecture: From Basic Endpoints to Scalable Systems
Learn the five pillars of RESTful design introduced by Roy Fielding in 2000 to build stateless, scalable APIs using JWT and HATEOAS.
AI-Driven Design-to-Code Pipeline Risks Repeating Dreamweaver Mistakes
Stéphane Laflèche warns that AI-generated code from design files creates a 'missing middle' where no human owns translation, risking fragile systems and silent drift.
Power BI Data Modeling: Mastering Star Schema, Fact Tables, and Relationships for Better Reports
Learn essential Power BI data modeling concepts including fact tables, dimension tables, star schema, cardinality, and joins to build faster and more accurate reports.