Skip to content

Chapters

Eighteen chapters, each ending with a quiz. Read them in order the first time, because each one uses ideas from the chapters before it. After that, jump to whichever chapter matches the problem in front of you.

Chapter Overview

  1. Good Enough as an Engineering Idea - How to decide which parts of your app must be right and which only need to be good enough for now, using trade-offs, risk, and decisions you can or can't undo.
  2. How a Web App Works - Follows a request from the browser to the server and back, so you can picture every part your agent builds: routes, HTTP methods, status codes, JSON and webhooks.
  3. The Code Under Your App - Names the frameworks, languages, packages, storage and background jobs in a typical AI-built app, and ends with a map of your own app.
  4. How AI Coding Agents Work and Fail - How coding agents work, why they drift and give confident wrong answers, and how instruction files and plans keep them on track.
  5. Version Control as a Safety Net - Git and GitHub as an undo button for agent work: save points, branches, pull requests, reading a diff and rolling back.
  6. Secrets and Configuration - How API keys and environment variables work, how a key leaks, how to replace a leaked one, and small traps like the trailing newline that break an app without an error.
  7. Sign-In, Permissions and Access - The difference between knowing who someone is and deciding what they may do, and why the server has to check both on every route and every record.
  8. Sensitive Data and Product Safety Rules - What personal data to collect and keep, when to delete it, encryption and hashing, and the product rules that protect the people your app is about.
  9. Working With Outside Services - Calling outside services safely: one adapter per vendor, checking responses, timeouts and retries, failures that look like success, and why every check needs a third result called not checked.
  10. Testing That Pays for Itself - Which tests to write first, from a quick check after each deploy to full tests of the money and sign-in paths, and how tests become instructions an agent can't forget.
  11. Databases and Changing a Live Schema - Tables, keys and queries, and how to change a live database safely with backups you've tested and one way of applying changes.
  12. Errors, Logs and Knowing What Happened - Handling errors, writing logs you can search, tracing one request, alerts, and noticing a job that never ran as well as one that failed.
  13. Keeping Costs Under Control - How pay-per-use pricing adds up, why model prices belong in one table, and how daily caps, spend alerts and breakers stop a runaway bill.
  14. Environments, Deploys and Rollbacks - Your laptop, a test copy and the live app, hosting platforms, deploy checklists, rolling back, and protecting work in progress during a deploy.
  15. Technical Debt and Keeping Docs True - How to list the shortcuts in your app, decide which to fix now, restructure code safely with an agent, and keep documentation matched to the code.
  16. Security as a Habit - The common web attacks, untrusted input and prompt injection, risky packages, and a short security review for every change.
  17. Rules That Enforce Themselves - Turning lessons into automatic checks that run before code is saved or merged, so a fix can't quietly come undone.
  18. Risk, Readiness and Knowing When You Need Help - Ranking what could go wrong, plans for the worst hour, a readiness checklist, and a final review of your own app that ends in a handover note for an engineer.