Module 1 — Coding with AI Today · 35 min
What AI Really Changes in a Developer's Job
Karim is a developer on a four-person team. Their order management application has been running for six years: a Node.js API originally written in JavaScript, half-migrated to TypeScript, a PostgreSQL database, and Jest tests that barely cover 40% of the code. His tech lead, Léa, tells him the team is about to adopt AI coding tools. Karim has already tried a chatbot to generate a regular expression, and got a wrong result that took him twenty minutes to spot. So he asks the right question: what will actually change in his work, and what will remain his responsibility?
This lesson answers that question without hype or knee-jerk skepticism. You will come away with a simple framework for deciding when to delegate, when to get assistance, and when to stay in control.
What gets cheap, what stays expensive
The main shift fits in one sentence: producing code has become cheap, but verifying that it is correct has not. An assistant writes an Express controller, a Jest test or a SQL migration in ten seconds. What still takes time is knowing whether that code does the right thing, follows the project's conventions and doesn't break anything elsewhere.
In practice, here is what drops sharply in cost:
- Repetitive code: DTOs, validators, mappers, CRUD routes, test fixtures.
- Exploration: "how is this function called?", "where is an order's status handled?". An agent reads twenty files faster than you do.
- The first draft: a migration script, a documentation draft, a test skeleton.
- Switching languages or libraries: writing Bash, SQL or CI YAML that you rarely use.
And here is what doesn't get cheaper, or even gets more expensive:
- Defining the need: an agent does what you ask, not what you meant.
- Design: splitting modules, choosing boundaries, error handling.
- Review: you sign off on the code, even if you didn't type it.
- Knowledge of the context: unwritten business rules, incident history, production constraints.
%% titre: Where the developer's time goes %% narration: This diagram shows that the time spent typing code drops sharply, but part of it shifts to defining the need and to verification, which become the decisive steps. flowchart LR A["Understand the need"] --> B["Design"] B --> C["Write the code"] C --> D["Verify and test"] D --> E["Ship"] C -. "accelerated by AI" .-> F["Time saved"] F -. "reinvested" .-> A F -. "reinvested" .-> D
The classic trap is to pocket the speed gain without reinvesting in verification. You ship faster, then spend the time you saved fixing regressions in production.
Three levels of assistance
Today's tools fall into three levels, which are not mutually exclusive:
| Level | What the tool does | Example | Your role |
|---|---|---|---|
| Completion | Suggests the rest of the line or block | Copilot or Cursor suggestions in the editor | Accept or reject, line by line |
| Chat | Answers a question, proposes a snippet | Chat built into the editor | Copy, adapt, integrate |
| Agent | Reads the repository, edits multiple files, runs commands | Claude Code, Cursor's or Copilot's agent mode | Frame the task, monitor, review the full result |
The higher you go, the bigger the potential gain, and the more the quality of your framing matters. A wrong completion is obvious immediately. An agent that edited twelve files based on a wrong assumption produces a mistake that is far more expensive to untangle.
What remains your job
AI doesn't change the nature of responsibility. When Karim opens a pull request, his teammates review his code, not the tool's. Three skills actually become more important:
- Specifying: writing a precise request, with context, constraints and a definition of done. That is the subject of module 2.
- Reading code quickly and well: spotting an inverted condition, a swallowed error, an N+1 query. You now read more code than you write.
- Testing: an automated test is the best way to verify code you didn't write line by line.
A junior developer who delegates everything without knowing how to review makes little progress and ships defects. An experienced developer who refuses the tools wastes time on low-value tasks. Good practice sits in between: delegate the execution, keep the judgment.
A decision framework for every task
Before handing a task to a tool, ask three questions:
- Can the result be verified quickly? A passing test, a type that compiles, a known expected output. If so, delegating is safe.
- Is a mistake expensive? Authentication code, amount calculations, data migrations in production: you can get help, but you review every line.
- Does the tool have access to the context it needs? If the business rule only exists in Léa's head, the tool will make it up.
%% titre: Should you delegate this task to AI?
%% narration: This diagram shows the decision framework: if the result is easy to verify and the context is available, you delegate; if a mistake is expensive, you get assistance but review everything; otherwise, you stay in control.
flowchart TD
A["New task"] --> B{"Context available to the tool?"}
B -- "no" --> C["Document first or stay in control"]
B -- "yes" --> D{"Result quick to verify?"}
D -- "no" --> E["Targeted assistance, full review"]
D -- "yes" --> F{"Expensive mistake?"}
F -- "yes" --> E
F -- "no" --> G["Delegate to the agent"]Applied to Karim's week, the framework gives for example: writing the missing tests for the invoices module (delegable, verifiable by running them), fixing the VAT calculation on credit notes (assistance, line-by-line review), deciding whether to replace the in-house ORM (a human decision; the tool can only prepare a comparison).
Misconceptions to drop
- "The AI knows my project." No. It sees what the tool sends it: open files, files read by the agent, project instructions. Lesson 4 of module 1 is devoted to this.
- "If it compiles, it's fine." Generated code compiles very often and is still wrong about logic, edge cases or security.
- "The more powerful the model, the less I need to review." Recent models such as Claude Opus 5.5 or Claude Sonnet 5 make fewer blatant mistakes, but their remaining mistakes are subtler and more convincing.
- "AI will replace code review." It can prepare and complement it, not take on its responsibility.
Hands-on practice
Audit your own work week, just like Karim.
- List the 10 to 15 tasks you completed last week (tickets, fixes, technical meetings, reviews).
- For each one, apply the framework: context available? result quick to verify? expensive mistake?
- Put each task in one of three categories: delegate, targeted assistance, stay in control.
- For the "delegate" tasks, estimate the time you could have saved and the verification time you would have needed to plan for.
Deliverable: a four-column table (task, category, one-sentence justification, estimated verification time).
Show solution
Here is Karim's table, as a model:
| Task | Category | Justification | Verification |
|---|---|---|---|
Add a deliveryNote field to the orders API |
Delegate | Mechanical change, covered by integration tests | 15 min |
Write tests for the invoices module |
Delegate | Verifiable by running the tests and reading the assertions | 30 min |
| Fix VAT rounding on credit notes | Targeted assistance | Expensive mistake (billed amounts), tricky business rule | 45 min |
| Script to purge expired sessions | Targeted assistance | Touches production, must be tested on a copy | 30 min |
| Choose between keeping the in-house ORM or moving to Prisma | Stay in control | Architecture decision; AI can prepare a comparison | — |
| Review Thomas's PR | Stay in control (assisted) | AI can flag issues, the decision stays human | — |
| Update the installation README | Delegate | Easy to verify by following the steps | 10 min |
Points to check in your own table:
- You have at least one task in each category. If everything is "delegate", the framework was applied too quickly.
- Verification time is never zero for a delegated task.
- Tasks marked "stay in control" are there because of context or responsibility, not out of habit.
Keep this table: you will come back to it in module 7 to measure your real gains.
Key takeaways
- Producing code has become cheap; verifying it has not. Reinvest the time you save in specification and testing.
- Three levels of assistance (completion, chat, agent): the more autonomy, the more framing matters.
- You remain responsible for the code you ship, whatever tool wrote it.
- Before delegating, ask whether the context is available, whether the result is verifiable and whether a mistake is expensive.