YouTube03 May 2025
1h 3m

The case against SQL

Podcast cover

Theo - t3․gg

This episode explores the controversial opinion of Robert Martin ("Uncle Bob") regarding the use of SQL in application development. Against the backdrop of Uncle Bob's assertion that SQL's embedding in programs was a grave error, the host analyzes the strengths and weaknesses of SQL, ORMs, and alternative database interaction methods. More significantly, the discussion pivots to the security implications of SQL injection vulnerabilities, arguing that while a considerable risk in the past, this is largely a solved problem with modern sanitization techniques. For instance, the host demonstrates how template literals can create seemingly dangerous SQL queries that are actually safe. Ultimately, the host concludes that while SQL's syntax may be suboptimal for application developers, a higher-level abstraction is needed, exemplified by tools like Drizzle and Convex, to bridge the gap between application code and database interactions, improving type safety and simplifying debugging. This means for the software development industry a shift towards more streamlined data access methods, prioritizing clear input-output pipelines over complex, stateful architectures.

Outlines

Part 1: Introduction and Context

Part 2: SQL Analysis and Security

Part 3: Agreement, Disagreement, and Abstraction

Sign in to continue reading, translating and more.

Open full episode in Podwise