Stop 02 · Developer Setup & ToolsTopics · 6/6

Using AI Coding Assistants Wisely

Part of the Web Development Roadmap

In short

AI tools can explain an error in seconds and write boring code for you. Used well, they make you faster. Used badly, they leave you with code you can't explain in an interview or fix when it breaks.

AI assistants can explain errors, suggest code and speed up boring tasks, but you still need to understand, test and be responsible for every line you keep.

The jaadu grips the steering wheel of a small driving school car, while a friendly round robot in the passenger seat points calmly at the road ahead.

Think of it like this

The driving instructor's second brake

In a driving school car, the instructor has a brake on their side. It's a huge help while you learn, but you still have to steer, read the road and pass the test alone. An AI assistant is that helper. Let it guide and catch mistakes, but keep your own hands on the wheel.

Watch it happen

Good and risky ways to use AI

Helpful

  • Explain an error message
  • Explain code you don't understand
  • Suggest test cases
  • Write repetitive boilerplate you could write yourself

Risky

  • Pasting whole projects you can't explain
  • Trusting it about library versions
  • Sharing passwords or API keys in prompts
  • Skipping practice on basics

Use AI to understand and to speed up work you already know how to do. Never keep a line you couldn't explain to an interviewer.

The big ideas

What you need to know

Ask for explanations

'Explain this error and why it happens' teaches you more than 'fix this'. Then fix it yourself.

Verify against docs

AI can be confidently wrong, invent functions or use old syntax. Check anything unfamiliar on MDN or the official docs.

Run and test everything

Read every suggested line, run it, and try edge cases like empty input before keeping it.

Protect secrets

Never paste API keys, passwords or private company code into a public AI tool.

See it in code

Walk through the code

js
1// AI suggested this to get the average marks2function average(marks) {3  const sum = marks.reduce((a, b) => a + b, 0);4  return sum / marks.length;5}6 7console.log(average([80, 90, 70])); // 80, looks fine8console.log(average([]));           // NaN, an edge case it missed9 10// Your improved version after testing11function safeAverage(marks) {12  if (marks.length === 0) return 0;13  return marks.reduce((a, b) => a + b, 0) / marks.length;14}

1/3Read the suggestion line by line. Do you understand reduce here? If not, ask the AI to explain it.

The AI's code worked for normal input. Testing an empty list found the gap, and you fixed it.

Save yourself the pain

Common mistakes

Oops

Copying AI code you don't understand because it seems to work.

Do this instead

If you can't explain it line by line, ask for an explanation or write it yourself.

Oops

Using AI for every exercise while learning the basics.

Do this instead

Solve practice problems on your own first. Use AI afterwards to review your solution or explain where you got stuck.

Your mission

AI as a tutor, not a ghostwriter

~20 min

Quick check

An AI assistant suggests a function you've never heard of. What should you do?

Go deeper

  1. 1Ask an AI to explain a concept, then check the explanation against official docs.
  2. 2Never paste code you can't explain into a project you will show in an interview.
  3. 3Try writing a feature yourself first, then compare your version with an AI suggestion.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge