Blog · 25 November 2026 · 7 min read

How to Use AI as a Software Developer, Carefully

How to use AI as a software developer: where it drafts, debugs and explains fast, and why checking its output against a real case still has to be yours.

Draft fast. Review harder. Ship checked.

A software developer’s week is not mostly inventing novel algorithms. It is writing a function against a spec someone else wrote, tracking down why a stack trace points somewhere that makes no sense, reading code a teammate wrote eighteen months ago, and explaining a change in a pull request so someone else can review it quickly. AI is genuinely fast at a first draft of most of that. It is not fast at knowing whether that draft is correct for this specific codebase, this specific edge case, this specific production environment — that part is still entirely yours, whatever language or stack you work in.

Where AI genuinely helps

  • A first draft of a function against a plain description of its inputs, outputs and edge cases, which you then run against a case you already know the answer to.
  • Explaining an unfamiliar error message, a cryptic stack trace, or a section of code someone else wrote, as a starting point for understanding rather than the final word on it.
  • Drafting a pull request description or a commit message from the actual diff, so review time goes on the change itself rather than restating it.
  • A first pass at converting a repetitive, mechanical change — updating a deprecated call across files, applying the same rename everywhere it appears — into a reviewable diff instead of grinding through it by hand.
  • Suggesting a handful of plausible causes for a bug from a description of the symptom, to narrow down where to actually start debugging.

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.

The study’s own authors were careful about where this applies: experienced developers working deep in mature, familiar codebases, where a plausible-looking change can quietly violate a convention or an assumption the model was never told about. The Microsoft Research paper on AI and occupations finds the clearest gains sit elsewhere — well-specified, bounded tasks with less tacit project context to get wrong, closer to scaffolding a new feature from a clear spec than refactoring deep inside a system you already understand.

A worked example

Weak: “Write a function that retries a failed network request.”

Better: “Write a function `fetchWithRetry(url, maxAttempts = 3)` in the style of the `fetchJson` helper below — same error handling convention, same logging call. It must back off exponentially between attempts and give up with the original error after the last one, not swallow it. Here is the existing helper to match: [paste it].” The second version gives the model a convention to follow and a stated failure behaviour to check, so you can verify the result against a handful of real inputs — a request that fails twice then succeeds, one that fails every time — in a couple of minutes, rather than trusting that it “looks right”.

Where it will quietly get you into trouble

  • A library method, config flag, or API endpoint 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 from an older or newer version of a package is a common shape it takes.
  • A performance or “this is more efficient” claim with no profiling behind it. That is a guess dressed as a fact until you have actually measured it on a representative input.
  • Arguing with the model about a bug in the same thread rather than reproducing it again from scratch. Research on sycophancy in language models has found these systems tend to produce agreement with what you seem to want rather than a genuine, independent re-check — so a revised answer after pushback is not the same thing as a verified fix.
  • Anything touching authentication, payments, or user data without a human checking the actual threat model. A confidently wrong security assumption, stated in fluent prose, is worse than no code at all.

Getting started this week

  1. 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.
  2. Paste the closest existing piece of code in your codebase and say “match this”, instead of describing the style in words.
  3. Before you accept generated code, run it against a real case you already know the answer to, not just “does it compile”.
  4. If you push back on a result, reproduce the original problem again independently rather than accepting the model’s revised answer at face value.

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 use AI as a web developer applies the identical drafting-versus-verifying split to the templated end of the same field, and how to use AI as a QA tester applies it to the testing side of the same team — covering exactly the review habit this article is built on, for someone checking your code rather than writing it. Will AI replace IT support specialists? covers the same drafting-versus-judgement split one step over, where the task is diagnosing someone else’s problem rather than your own code. How to check an AI answer when you are not the expert covers the general version of the verification habit behind all of it, and what AI is actually bad at covers the specific failure modes worth knowing before trusting output that merely compiles.

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 function, explain the stack trace, and write the first pass at a commit message. 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 — and the METR study is a clear warning that most developers currently overestimate how well they are already doing that.

Coursium teaches that underlying habit directly — writing a clear request and checking what comes back before you trust it, whether the output is a function, a sentence, or a summary. Stay ahead of AI by learning the tools on your phone.