AI coding assistants are part of my daily work now, including on this site. They changed how fast some tasks go and did not change who is responsible for the result. The useful question is not whether to use them but how to use them so the code is still something you would sign.
Where they save real time
- Scaffolding and boilerplate. Project setup, configuration files, a CRUD endpoint that follows an existing one.
- Translation between forms. A SQL schema to TypeScript types, a curl command to a fetch call, an old class component to a function component.
- First drafts of tests. Given a function, an assistant lists cases quickly, including edge cases you might skip.
- Unfamiliar territory. Reading a codebase in a language you use rarely, or getting oriented in a library's API.
- Explaining errors. A stack trace plus the relevant file is often enough for a correct diagnosis.
In all of these, you can verify the output faster than you could have written it. That is the test for whether a task is a good fit.
Where they fail
- They state wrong things confidently. An API that does not exist, an option removed two versions ago. The tone is the same whether the answer is right or wrong.
- They lack context you did not give. Business rules, a decision made last month, why the odd-looking code is that way.
- They optimize for looking finished. Code that compiles and reads well can still miss the actual requirement.
- They follow the prompt, not the goal. Ask for a fix and you may get a change that hides the symptom.
Habits that keep quality up
Give context before asking. Point at the relevant files, state the constraints, describe what done looks like. Most bad output traces back to a vague request.
Work in small steps. One function or one change at a time, reviewed and run before the next. A 600-line generated diff is a diff nobody reviews properly.
Read every line you commit. If you cannot explain why a line is there, it does not go in. The author of a commit is the person who pushed it.
Run it. Tests, the type checker, and the feature itself in a browser. "It looks right" is not verification.
Check claims against the source. For anything that matters, such as a security setting, a migration or a library behavior, open the official documentation.
Keep the tests honest. An assistant asked to make a failing test pass may change the test. Review test changes as carefully as code changes.
Security and privacy
- Never paste secrets, tokens or customer data into a prompt. Know your tool's data policy and your employer's rules.
- Generated code can carry the same vulnerabilities as any code: injection, missing authorization checks, unsafe defaults. Review it as you would a pull request from a stranger.
- Check that suggested packages exist and are the real ones before installing. A plausible name is not proof.
- Give agents that run commands the least access they need, and look at what they intend to do before it touches anything you cannot undo.
What does not change
Understanding the problem, choosing the design, deciding what to leave out and owning the outcome are still the job. An assistant makes typing faster. It does not know whether the thing being typed should exist. Teams that treat the output as a draft from a fast junior colleague, useful and in need of review, get the speed without paying for it later.