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.
Understanding Model Context Protocol (MCP): A Standardized Bridge for Agentic AI
Anthropic's Model Context Protocol (MCP) standardizes how LLMs securely connect to external data sources, enabling more efficient and scalable agentic workflows across fragmented enterprise APIs.
Architecting Efficient AWS Data Stores: A Guide to DynamoDB and DAX for Product APIs
Optimize AWS DynamoDB performance for Product Catalog APIs using single-table design and GSIs to achieve 100% query efficiency.