Engineering brief
If AI writes your tests, you can't debug the failures
At a glance
The brief is enough
- Relevance
- Practical value
- Radar
- Time horizon
- Now
- Warnings
- None
AI is great for looking up a DB2 query and terrible for writing tests you'll have to debug. Naser's Aurora Postgres story is the real signal: stale statistics, not model quality, caused the outage.
AI and ORMs make code easier to produce, but harder to understand when production breaks.
Watch if you manage backend engineers who use ORMs heavily, or you are deciding how much AI-generated code your team should own.
Summary
The argument. Hussein Naser opens with a warning: the joy of programming comes from crafting instructions and debugging them, and AI-assisted development is quietly removing that feedback loop. His broader claim is that abstractions, not just AI, hide reality. He is not anti-tool. He is arguing that anything which hides complexity will eventually leak, and engineers who do not understand what is underneath cannot fix what breaks.
The production example. Naser, a senior principal product engineer at Esri, spends his days tuning queries across SAP HANA, Oracle, SQL Server and Postgres. He recounts a recent Amazon Aurora Postgres failure where identical data ran in milliseconds locally but maxed CPU in Aurora. The cause was stale statistics: data was copied but vacuum analyze never ran, so the planner chose full table scans. Running vacuum analyze fixed it. The lesson is operational, not exotic: database statistics and plan choices matter more than raw capacity.
The ORM trap. His critique of object relational mappers is the strongest practical signal. An ORM makes a constructor that fetches one item look simple, so a junior developer loops over 100 IDs and fires 100 queries when one IN clause would do. Then the abstraction leaks: selecting 150 fields, sorting 100,000 rows in the back end instead of in the database, and hiding the volume until CPU and memory say otherwise. He calls this the illusion of simplicity.
The AI boundary. Naser uses AI the way he used Google: to get the query for listing table locks in DB2 or to remind himself of reduce parameters. He refuses to use it for test cases, because if AI writes a test and it fails, he cannot debug code he did not write. This is a useful line for teams: use AI for disposable lookups, not for the artifacts you must own and maintain.
The leadership read. The interview is short on benchmark data and long on one practitioner's experience, so treat the strong claims as hypotheses, not proven policy. But the organizational implication is clear: code review and training budgets should focus on whether engineers understand the systems behind the tools. AI amplifies speed; it does not replace the need for fundamentals.
The trade-off. Readability always costs something. Naser is willing to write ugly SQL for performance, but a team cannot scale that preference without structure. The practical response is not to ban ORMs or AI, but to review for hidden volume, require knowledge of the underlying database, and keep humans responsible for tests. That is where the joy and the critical thinking actually live.
My take
I agree with the line between using AI for lookups and owning the output. That is the most useful boundary in the whole conversation. But I would not make the joy argument the takeaway. The romantic framing will not convince a manager trying to ship faster. The operational framing will: if AI writes the tests, someone still has to explain a red build.
I would add a nuance the interview leaves out. The practical fix is making hidden volume visible in review. Ask for query counts, result sizes, and plan changes on every PR that touches data. That turns the debate into a process change, not a nostalgia campaign.
What to do with this
- Ask your team to run vacuum analyze after any bulk data load into Postgres and verify execution plans with explain.
- Add an ORM review checklist: query counts, selected fields, and whether sorting happens in the database.
- Require engineers to debug any AI-generated test they commit, and track how long that takes.
Watch the video
This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.
Related breakdowns
Model Choice Barely Matters: Fix Engineering Culture, Not AI Tools
AI model choice explains under 1% of developer output variance, per Jellyfish's 50,000-engineer dataset. The levers leaders control matter more.
Human behavior simulation is close to usable, but check the 85% claim
Simulated users predicting behavior at 85% accuracy could change product testing, but the claim is vendor-generated and the ceiling is too convenient.
Stop evaluating models. Start evaluating the risk around them.
1,368 AI failures later: deployment controls, not model quality, determine real-world harm. Failure-driven evals follow. No production proof yet.
Get TL;DW
Too Long; Didn't Watch.
A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.
Free. Weekly. No hype.
Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.