How to Use AI as a Web Developer, Without the Rework
How to use AI as a web developer: where it drafts boilerplate and tests fast, and why checking the output against a real case still has to be yours.
Most of a web developer’s week is not typing out novel logic from scratch. It is scaffolding a component you have built a dozen times before, writing a test for behaviour you can describe in a sentence, tracking down why a build is failing from an error message, and keeping documentation roughly in sync with what the code actually does. AI is genuinely fast at a first draft of all four. It is not fast at knowing whether that draft is correct for your specific codebase — that part is still entirely yours.
Where AI genuinely helps
- Scaffolding boilerplate — a component shell, a form with validation, a repetitive CRUD endpoint — from a plain description of what it needs to do.
- A first draft of a unit test from a described behaviour, which you then run against the real function and correct — will AI replace QA testers covers the same drafting-versus-judgement split for testing done as its own role, not a side task.
- Explaining an unfamiliar error message or stack trace in plain language, as a starting point for debugging rather than the fix itself.
- A first pass at a code comment or a README section describing what a function does, which you then check against what it actually does.
- Converting a repetitive, mechanical refactor — renaming a pattern across files, updating a deprecated API call to its replacement — into a reviewable diff instead of doing it by hand.
Why the review step still takes real time
A randomized controlled trial run by METR, an AI evaluation organisation, is the clearest evidence on this. In early 2025, 16 experienced open-source developers completed 246 real tasks in codebases they already knew well, half the time with AI coding tools allowed and half without. Developers using the tools took about 19% longer to finish, despite forecasting beforehand that the tools would speed them up by roughly 24% — and still believed afterward that AI had sped them up by about 20%, the opposite of what actually happened.
Time in the study shifted away from writing and searching code and toward prompting, waiting on the model, and reviewing its output — and the reviewing was where the time actually went.
That is not a reason to avoid these tools. The study’s own authors note the result is specific to experienced developers working deep in mature, familiar codebases — a different situation from scaffolding a new feature against a clear spec, which is closer to where the Microsoft Research paper on AI and occupations finds the clearest gains: well-specified, bounded tasks with less tacit project context to get wrong.
A worked example
Weak: "Write a function to validate an email address."
Better: "Write a TypeScript function `isValidEmail(input: string): boolean` matching the validation rules already used in `validatePhone` below — no external regex library, and it must reject anything over 254 characters per RFC 5321. Here is the existing function to match: [paste it]." The second version gives the model the convention to match and a stated limit to check against, so you can verify the result against a handful of real inputs in under a minute rather than trusting that it "looks right". AI prompts for expert-level web development covers this constraint-environment-example-bar structure in full, for prompts more complex than one function.
Where it will quietly get you into trouble
- A library method or API that does not exist in the version you are actually running. Hallucination in large language models is a documented, structural property of how these tools work, not an occasional glitch, and a plausible-sounding method name for an older or newer version of a package is a common shape it takes.
- A performance claim with no profiling behind it. "This is more efficient" from a model is a guess dressed as a fact until you have actually measured it.
- Anything touching authentication, payments, or user data without a human checking the actual threat model — a confidently wrong security assumption is worse than no code at all.
- Arguing with the model about a mistake in the same thread, rather than adding the missing constraint and starting again — these systems tend to produce agreement with what you seem to want rather than a genuine correction.
Getting started this week
- Pick one task you can verify in under a minute — a utility function against a known input, not an architectural decision — and hand it to AI first.
- Paste the closest existing piece of code in your codebase and say "match this", instead of describing the style in words.
- Before you accept generated code, run it against a real case you already know the answer to, not just "does it compile".
- Keep a running note of which kinds of tasks actually saved you time this week versus which ones cost more time in review than they saved — the METR result only holds if nobody checks their own experience against it.
The wider pattern this fits
Will AI replace software developers? covers the same METR finding in full, alongside the job-growth numbers that explain why the two are not in conflict. How to check an AI answer when you are not the expert covers the general version of the verification habit this article is built on, and what AI is actually bad at covers the specific failure modes worth knowing before trusting output that merely compiles. Will AI replace architects? applies the same drafting-versus-verifying split to a profession where the final check carries legal liability rather than a failed build. Will AI replace web developers? covers the job-security version of this same split, including why a site-generating tool is a different kind of competition from a coding assistant. How to use AI as a QA tester applies the same drafting-versus-reviewing split to the testing side of the same team.
There is a real pay signal behind getting good at this split. PwC’s 2026 Global AI Jobs Barometer, an analysis of close to a billion job postings across 24 countries, found a 62% wage premium for workers with demonstrable AI skills, up from 57% the year before. The NIST AI Risk Management Framework makes the organisational version of the same point: decide in advance what gets independently checked before it ships, rather than finding out after a mistake reaches production.
The short version
Use AI to draft the boilerplate, the first-pass test, and the plain-language explanation of an error. Do not use it to skip the check against a real case you already understand, and do not trust a performance or security claim it has not actually measured. The reviewing habit, not the generating, is the skill worth building deliberately.
Coursium teaches that underlying habit directly — writing a clear request and checking what comes back before you trust it, whatever the output is a function, a sentence, or a summary. Stay ahead of AI by learning the tools on your phone.