cd /news/developer-tools/use-ai-like-a-senior-engineer-actual… · home topics developer-tools article
[ARTICLE · art-34056] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Use AI Like a Senior Engineer: Actually Fixing Bugs, Not Just Asking Questions

A developer argues that engineers get the most out of AI coding tools like Claude, Copilot, and ChatGPT by treating them as senior colleagues rather than search engines. The key is to do 70% of the debugging work first—isolating the problem, eliminating assumptions, and providing context—so the AI can give specific, actionable solutions instead of generic advice. The post emphasizes that this approach sharpens debugging skills and deepens codebase understanding.

read3 min views6 publishedJun 19, 2026

You're staring at a stack trace that makes no sense. Three console.logs in, still confused. So you copy-paste it into Claude and wait for an answer. Sometimes it works. Sometimes you get generic debugging advice you already knew.

Here's the thing: the devs who get the most from AI tools don't treat it like a search engine. They treat it like a senior engineer sitting next to them. Which means they do the prep work.

When you dump a stack trace with zero context, you get zero-context answers. Claude might guess at what's happening, but it's flying blind. You get suggestions like "add console.logs" or "check your imports" — stuff you've probably done already.

The best debugging happens when you've already done 70% of the thinking.

Then they ask smarter questions. Not "why is this broken?" but "I'm seeing X, expected Y, and here's what I've already tried."

My React form isn't updating. Help?

Error: 
TypeError: Cannot read property 'value' of null

Claude gets: "Check if your ref is set up correctly."

You get: Frustrated.

React form with controlled input. onChange updates state, form displays wrong value.

Here's my component:
[paste actual code]

When I type in the field:
- Input value changes visually
- React DevTools shows state DIDN'T update
- No errors in console

I've tried:
- Checked onChange is attached
- Logged the event object (it's there)
- Verified handleChange is defined in the class

What am I missing?

Now Claude can see:

Answers become specific. "Oh, you're binding the handler wrong" or "That's a closure issue" — actual solutions.

You've got a search input that fetches results. Sometimes you type fast, results come back in the wrong order.

Don't say: "My search is broken"

Say: "I fetch data in an onChange handler without canceling previous requests. When I type fast, response order doesn't match request order. I've tried [thing 1, thing 2]. Should I be using AbortController?"

Claude can now give you the exact pattern:

useEffect(() => {
  const controller = new AbortController();
  fetch(`/api/search?q=${query}`, { signal: controller.signal })
    .then(res => res.json())
    .then(setResults);

  return () => controller.abort(); // Cancel on cleanup
}, [query]);

You didn't ask for it. You understood the problem first, then asked the smart question.

This works with every AI tool — Claude, Copilot, ChatGPT, whatever. The tool doesn't matter as much as the thinking.

Senior engineers don't know everything. They're good at debugging because they isolate problems, eliminate assumptions, and ask answerable questions.

Using AI the same way doesn't make you dependent on it. It makes you sharper at the thing you're already supposed to do: actually understanding what's breaking.

Plus, the time you spend narrowing down a bug is never wasted. You learn your codebase better. You catch edge cases. You write better code next time.

If you hit all of those, Claude will give you answers that actually work.

More dev resources: Check out LearnAI Weekly for practical guides on AI tools, productivity hacks, and the kind of stuff that actually saves you time.

── more in #developer-tools 4 stories · sorted by recency
── more on @claude 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/use-ai-like-a-senior…] indexed:0 read:3min 2026-06-19 ·