# AI-Assisted Development: Context and Code Review | Yahya Erturan

Canonical: https://yahyaerturan.com/en-GB/blog/ai-and-skilled-developers/
Language: en-GB

AI-assisted development

AI Is Good for Software Development — If You Already Know Your Craft

AI can generate code. Defining the task, checking the result and releasing it safely still take engineering.

Yahya Erturan · About 12 min read Published 11/11/2026 Last updated 26/11/2026

 Plan an online meeting ↗
 All articles ↗

Using AI to write code can be a good thing. Building good software still requires understanding the problem, recognising boundaries and evaluating the result. AI does not remove that work; it often amplifies sound engineering habits.

In brief

AI is most useful when you can define the task, reverse the change and check the result at a reasonable cost.

Decide which product behaviour must survive before you ask a model for a small, reviewable change.

Measure the time to a release-ready change and the fixes that follow, as well as the speed of the initial draft.

The phrase “if you are already a good developer” is not intended to exclude beginners. New developers can learn from AI, experiment and explore code more quickly. The difference is understanding what the generated code solves and what risks it introduces. When AI produces something, you still need to judge whether it is right.

Where AI is a good fit

AI can be useful for bounded, reversible tasks with observable outcomes: drafting a data transformation, proposing test cases, simplifying documentation, explaining an unfamiliar API or suggesting options for repetitive refactoring.

The task must be clear. “Modernise this module” is vague. “Extract these three repeated checks into a separate method without changing this endpoint’s response format; keep existing tests and add edge-case coverage” sets a much clearer boundary.

Experience helps me ask the questions that come before code

Being a good developer means more than knowing a language or framework. It takes translating product needs into technical requirements, understanding the architecture, seeing the boundaries a change affects and weighing alternatives. When a model proposes a solution, these questions still require engineering judgement:

Does this change meet a real user need, or just match the requested screen?

Are data and access boundaries correct? Could sensitive information go to the wrong place?

Have errors, empty values, repeated requests and stale data been considered?

Do the tests check behaviour, or merely repeat the code’s own assumptions?

Does it add dependencies, maintenance effort or unnecessary abstraction?

Will the team be able to read and change this code in six months?

A model can help with these questions. Accepting its answer and validating it are not the same thing.

Why vibe coding cannot be a production strategy

Experimenting with code is useful for quick prototypes and early user feedback. The problem comes when a prototype becomes production software without resolving the uncertainty. Shipping code without understanding it, defining acceptance criteria or testing it can turn speed into accumulated risk.

“Seemed to work” is not enough for authentication, payments, personal data, permissions, deletion or automated actions in external systems. A production defect may mean data loss, a security vulnerability or an incorrect customer transaction, not just a visible bug.

A controlled AI-assisted development workflow

Write down the task clearly. Make the purpose, exclusions, current behaviour and acceptance criteria explicit. Do not let the model invent missing context.

Ask for an approach first. For larger changes, ask for a plan covering files, dependencies, risks and small steps before requesting code. Review and refine it.

Keep the change small. A diff focused on one responsibility is easier to verify and roll back. Do not let the model change unrelated files.

Discuss testing from the start. Define errors and edge cases as well as the happy path. Check that tests actually run in the real environment.

Review independently. Do not validate the solution by asking the same model whether it is correct. Use code review, type and lint checks, and security scans.

Release in stages. Define staging, feature flags, monitoring and rollback. Add human approval to automation that affects the outside world.

Set data and cost boundaries. Agree as a team which sensitive information may be sent to which tools, the access permissions and the model/API cost limits.

When AI is not the right choice

If requirements are unclear, data is unclassified or results cannot be measured, close those gaps first. Do not leave irreversible or high-impact decisions to fully autonomous workflows. Adding a model to every task is not efficiency; a simple rule, SQL query or small automation may be cheaper and more reliable.

An AI tool’s reliability depends on more than its model. Scope, access, context and validation all matter. “AI wrote it” is not a quality mark; “a human wrote it” is no guarantee either. What matters is whether the team understands the change and can test it with evidence.

Being a good developer does not mean opposing AI

Getting value from AI does not require a romantic attachment to writing every line by hand. Letting tools handle repetition can free people to focus on product decisions, architecture, testing and user impact. But developers must still direct the process, rather than treat a model as a magical team member that knows what to do next.

For me, good AI-assisted development means clear tasks, limited permissions, small changes, working tests, human review and a way to roll back. Without that foundation, software does not simply get built faster; it becomes harder to understand faster.

Which decisions belong to you before coding starts?

When a request comes in, I first want to know whose work it changes and how. A complaint that CSV export is slow might describe three separate problems. A small report might take too long to generate. A large report might leave the browser waiting. The file might be ready, but the user cannot find the download. All three sound the same in a support ticket. For the first, I would measure the query and the data volume. For the second, I might prepare the file in the background. For the third, I would improve the interface. The team chooses which delay it is trying to remove before changing the code.

If you hand that choice to the model, you can get an elegant fix for the wrong problem. An agent might move every export to a background job. That could help with big files and add a step for the accountant who currently clicks once to download a small weekly report. I write down how people use the feature today, which class of report should change and what a person should see while waiting. I then ask the model to find where the current behaviour is defined and propose a plan. Reviewing that plan takes less work than undoing a patch built on the wrong assumption.

Sometimes the acceptance criteria emerge only when you watch a person doing the work. Sending a notification when a report is ready sounds helpful. Someone who exports the same report with several filters in a day also needs to know which filter each notification refers to. Who owns the file if another team member must see it? How can someone waiting for the result tell whether the job is still running? Details like these help determine whether the application needs explicit states for the operation.

Choose the context you give the model

I supply what the model needs for the decision at hand. Relevant paths, a similar example, the existing test command and the public contract that must remain stable are usually enough to start. If the team relies on a particular date or currency format, I make a small example that contains no customer records. When the model can explain why it needs to read more, we can reconsider the access it has. That brings what the agent can see into line with what team rules allow.

For “add an organisation filter to the results list”, I would specify that sorting and pagination still work as they do today, an empty selection preserves the current results, and changing a filter returns the user to page one. I might ask for two approaches and the code each would touch. Pointing the model to the repository's existing pagination pattern reduces the diff I have to review. A model can explain how a known behaviour works while the product owner decides how a new one should work.

A useful request also sets a limit on assumptions. If the model cannot verify an API parameter, ask it to say so and pause. Confirming the library version in the project files beats guessing from the latest public documentation. A README can be out of date, too. If a command fails on the first run, I record the exact command and output. A long chain of instructions can bury the failure, while a clear record gives the developer enough to decide what to do next.

Find out where the time goes in code review

I start with the inputs and outputs of the change. Which function now gets called differently? Does an external consumer still receive the same response? What happens if an operation runs twice? Next I read the small set of examples that prove the intended behaviour. Five tests that repeat one scenario under different names tell me little about empty results or the effect of a retry. A short table of cases can expose a gap more quickly than two pages of explanation.

The chart compares similarly sized changes. A draft arriving 30 minutes sooner sounds valuable. If review takes another 25 minutes and rework also rises, that advantage can disappear. Measure active work using the same start and finish points, from opening the task to getting it ready to merge. Keep time spent waiting for a reviewer separate from time spent working. That makes it easier to see which part of the job the model actually helped with.

Illustrative time budget for comparable changes

Each bar represents total active work. The hypothetical figures show how to account for the whole task. Expand a row for the breakdown.

Manual implementation 100 min

Planning 15, implementation 50, review and validation 25, rework 10 minutes.

First AI-assisted draft 100 min

Planning 15, implementation 20, review and validation 50, rework 15 minutes.

AI with targeted context 78 min

Planning 18, implementation 20, review and validation 30, rework 10 minutes.

A team can run this comparison across a few related tasks. Keep a UI copy change and a database migration in separate groups. Complexity, the developer's familiarity with the area and reviewer availability all affect the result. The first comparisons also include time spent learning the tool. Discuss which types of tasks produced less rework and which pieces of context made review easier. A ranking of individuals tells you little about what to change in the workflow.

How do you stay in control while learning?

If you are starting out, choose a small, complete task such as filtering a to-do list by status. Write out three different tasks and the expected result first. Then ask the model to describe when two possible implementations make sense. Implement one yourself or explain the resulting draft line by line. Try an empty input, an unexpected status and a different order. If you can close the model's solution and reproduce the behaviour the next day, it has supported your learning.

Change one assumption on your second attempt. If the filter needs to support multiple choices, does the approach still make sense? Can you read the sorting and filtering logic independently? Spend five minutes explaining it to a mentor or colleague. You can also ask the model to quiz you and wait before revealing the answer. Keep your own record of the terms you learned and how you recovered from a mistake.

The same process helps experienced developers in unfamiliar codebases. I start by asking a model to map an existing flow. It can find the page's data-loading step, the expected server response, the error state and the files that connect the layers. I then open the files and code locations it cites. When I find a contract another team depends on, I check with them first. That lets me orient myself quickly without converting a misunderstanding into a change.

Write down what the team delegates and to whom

Make AI use part of the task description. One team might distinguish between a draft the model writes, a change it prepares in an environment where checks can run, and a release a person approves. For each level, say which files the tool may access and who accepts the result. Treat work involving customer data or expensive rollbacks separately. Whether an agent can take an action is a technical question. Whether it should have permission for this particular task is the team's decision.

Keep those rules short and close to the work people can observe. Have the person preparing a change record its acceptance criteria and the checks they actually ran. For a refactor, specify which behaviour stays stable and put feature work in another change. After two weeks, compare active time to release readiness, human review minutes and issues that came back. A team benefits when it can deliver smaller, more understandable changes with fewer surprises.

Frequently asked questions

Will AI replace software developers?

It can produce some of the code. Someone still needs to own what the product should do, which constraints apply and whether the change is ready to release.

Can a beginner learn to code with AI?

Yes. Write the expected result first and ask for a hint. Practise explaining the code and changing one small behaviour without assistance.

Which tasks should I give AI first?

Choose something narrow, reversible and easy to check. Try asking it to explain a transform or draft documentation from an existing example.

What belongs in a good task brief?

The goal, the affected component, behaviour to preserve, what is out of scope and how to verify the work. Ask the model to identify assumptions it cannot verify.

Does an AI tool need access to the entire repository?

Relevant files, an existing example and the command to run are usually enough to start. If the tool needs wider access, review the reason and team data rules.

Can I merge AI-generated code that works?

Read the change, confirm that the public contract holds and verify the acceptance criteria independently. A successful local demo is one part of that review.

Which metric should I track first?

Record active time until a change is ready to merge, review effort and subsequent rework separately.

When should I accept a dependency suggested by AI?

Look for a clear need and meaningful benefit over a simpler option. Make sure the team can handle the licence, maintenance and updates.

Does everyone on the team need to use the same AI tool?

Agree on shared data and access rules, verification and delivery criteria. Compare tools by how well they meet those requirements and help the work.

What should I do if I distrust a suggestion?

Break it into parts and check the claims against the code and documentation. Try a smaller approach or ask a responsible team member to decide.

How do I start taking a prototype to production?

Write down what the product promises, how it can fail and who will operate it. Run the critical journey with representative data and prepare a rollback.

Related articles

How do you verify code generated by AI?

How big should a software team be in the AI era?

Don’t miss new articles

Would you like an email when a new blog article is published?

 Follow via RSS ↗
