Course Description¶
Title¶
Good Enough Engineering: What Builders Who Code With AI Need to Know to Ship Safely
Audience¶
This is a professional development course for adults. The reader is a builder who knows a field well, has a problem to solve, and has used an AI coding agent (Claude Code, Cursor, Replit, Lovable, Bolt or similar) to build a working app. They didn't train as software engineers. Their app has users, or soon will, and it handles data those users care about: photos, messages, payments, personal details.
They don't want a computer science degree. They want to know which parts of engineering matter for an app like theirs, which parts can wait, and how to tell the difference. They want to keep building with AI, and to direct the agent well instead of hoping it gets things right.
Prerequisites¶
- Has built, or is building, at least one app with an AI coding agent.
- Can open a terminal, run a command the agent suggests, and read the output.
- Has a GitHub account and has pushed code at least once.
- No programming course, computer science degree or prior engineering job is assumed.
Why This Course Matters¶
AI has made building cheap. A person with a good idea can now ship in a weekend what used to take a team a quarter. The hard part has moved. It used to be "can I build it." Now it is "is what I built safe, does it keep working, and can I still change it next month."
Professional engineers learned these lessons slowly, over decades, mostly from outages and breaches. Builders who code with AI meet the same problems in weeks. A secret key gets pushed to GitHub. Anyone can skip the sign-in. A database change wipes a table. A vendor bill triples overnight. A scheduled job stopped running a month ago, and nobody noticed.
Engineers have a name for building only as much as the job needs. Herbert Simon called it satisficing: stop when the design meets the bar, not when it is perfect. The skill this course teaches is setting that bar. Some parts of an app must be done right the first time, because a mistake there hurts a user or cannot be undone. Most parts only need to be good enough today and easy to change tomorrow. This course teaches the reader to tell the two apart, and to use cheap habits, guardrails and checks so the AI agent does the heavy work inside safe limits.
The book follows one running example: a dating-safety app built by a domain expert with AI agents. It checks photos, voice and text about an online match against several outside services and returns a trust score. It has users, sensitive data and paid vendors behind it. Each chapter shows what the AI got right, what it missed, and the small habit that would have caught it.
Main Topics Covered¶
- Good enough as an engineering idea. Satisficing, the cost of perfect, one-way and two-way doors, and deciding where the bar sits for each part of an app.
- How AI coding agents work and fail. Context windows, the harness around the model, confident wrong answers, drift across a long session, and writing instructions an agent will follow.
- Directing the agent. Project instruction files (CLAUDE.md, AGENTS.md), plans before code, small steps, asking for tests, and reviewing a diff you did not write.
- Version control as a safety net. Git basics, commits as save points, branches, pull requests, reverting, and branch hygiene when an agent makes many branches.
- Secrets and configuration. API keys, environment variables, .env files, keeping secrets out of git, rotating a leaked key, and the trailing-newline trap.
- Sign-in, permissions and access. Authentication versus authorization, sessions, roles, protecting every route, and checking access on the server, not only in the browser.
- Handling sensitive data. What to collect, what not to keep, storage buckets, retention and deletion, privacy rules, and product rules that work as safety decisions.
- Working with outside services. API adapters, validating what a vendor sends back, rate limits, timeouts, retries, failing safely when a service is down, and the three results every check needs: passed, failed and not checked.
- Cost control. Per-call vendor and model pricing, one price table, daily caps, spend alerts, and a breaker that stops the app before a bill runs away.
- Databases and schema change. Tables and relations, ORMs such as Drizzle, migrations, backups, and changing a live schema without losing data.
- Testing that pays for itself. What to test first, smoke tests, end-to-end tests of the paths users depend on, and tests as instructions the agent cannot forget.
- Errors, logs and observability. Handling errors, structured logs, alerts, uptime checks, and watching for jobs that never ran as well as jobs that failed.
- Environments and deploys. Local, staging and production, hosting platforms such as Vercel and Railway, rollbacks, and deploy checklists.
- Security as a habit. The common web vulnerabilities, dependency risk, security drift as an app grows, and a lightweight security review.
- Technical debt. Naming debt, keeping a debt register, deciding what to pay down now, and refactoring with an agent without breaking things.
- Rules that enforce themselves. Turning lessons into checks, linters, pre-commit hooks and CI so a fix cannot quietly come undone.
- Knowing when you need help. Signs that an app has outgrown good enough, what to ask an engineer to review, and how to hand over a codebase.
Topics Not Covered¶
- Learning a programming language from the start. The reader works through an AI agent and learns to read code, not to write it line by line.
- Computer science theory: algorithms, data structures, complexity.
- Building AI models, training, or machine learning engineering.
- Large-team engineering management, hiring, or scaling an engineering organization.
- Mobile app store publishing, game development and embedded systems.
- Legal advice. Privacy law is introduced only as far as an engineering decision depends on it.
- Choosing a business model, marketing or fundraising.
Learning Outcomes¶
After this course, students will be able to:
Remember¶
- List the parts of a typical web app: browser front end, server, database, file storage, outside services and hosting.
- Name the places a secret can leak: git history, logs, the browser, screen shares and chat with an AI agent.
- Recall the difference between authentication and authorization.
- Identify the files that steer an AI agent in a project, such as CLAUDE.md and AGENTS.md.
- Define satisficing, technical debt, migration, rollback and one-way door.
- List the common web vulnerabilities, such as injection, broken access control and exposed secrets.
Understand¶
- Explain why building fast with AI moves the hard part from writing code to judging it.
- Describe how an AI coding agent loses track of instructions over a long session, and why written project rules help.
- Explain why a check on the server matters when the browser already checks.
- Summarize how a database migration changes a live database and why it needs a backup first.
- Explain why a product rule such as "never name a person from an AI guess" has to live in code, not only in a prompt.
- Explain why a job that never runs is harder to notice than a job that fails.
- Describe how security problems often come from drift, not attacks.
Apply¶
- Write a project instruction file that tells an agent the app's rules, stack and limits.
- Use git to commit, branch, open a pull request and roll back a bad change.
- Move secrets into environment variables and confirm none are in git history.
- Add a smoke test and an end-to-end test for the app's most important path.
- Set up error logging and an uptime alert for a deployed app.
- Run a deploy checklist before shipping to production.
- Rotate a leaked API key and confirm the old one no longer works.
Analyze¶
- Sort the parts of an app into must-be-right and good-enough-for-now.
- Trace a request from the browser through the server, database and outside services, and mark where it can fail.
- Read an AI-written diff and spot changes outside the task it was given.
- Break a vague bug report into a cause that can be tested.
- Compare what an outside service promises with what the app does when it fails or times out.
- Find where a product rule, such as "never report all clear unless every check ran," depends on engineering.
Evaluate¶
- Judge whether an app is ready for real users, using a readiness checklist.
- Decide which technical debt to pay now, which to log, and which to accept.
- Assess an AI agent's proposed fix for side effects before accepting it.
- Weigh the cost of a vendor or a check against the risk it removes.
- Critique a security plan for gaps between what it says and what the code does.
- Rank an app's failure modes by how bad, how likely and how hidden each one is, using a simple failure mode and effects analysis (FMEA).
- Decide when a problem needs a professional engineer.
Create¶
- Design a debt register and security plan for their own app.
- Build a set of self-enforcing rules: a pre-commit hook, a CI check and a test that stop a past mistake from coming back.
- Write a runbook for the app's most likely failures: a vendor outage, a leaked key and a bad deploy.
- Capstone: take an app they built with AI through a full good-enough review. Map its parts, mark the must-be-right parts, find and fix the top five risks with the agent's help, add the checks that keep them fixed, and write a one-page handover note an engineer could pick up.