How I Actually Use AI While Coding
Lately I’ve been using AI a lot while coding. But not in the way most people think. I’m not opening AI and saying “build this for me”. Most of the time it looks more like this: Real Scenario 1 — Ge...

Source: DEV Community
Lately I’ve been using AI a lot while coding. But not in the way most people think. I’m not opening AI and saying “build this for me”. Most of the time it looks more like this: Real Scenario 1 — Getting Stuck I’m writing something simple, like a layout or a component. At some point, things stop making sense. Instead of dumping everything to AI, I usually write something like: “I’m trying to do X, but this part feels wrong. Can you point out what I’m missing?” Not asking for code. Just asking where I’m thinking wrong. Most of the time, that’s enough. Real Scenario 2 — Something Works, But Feels Wrong Sometimes the code works. But I know it’s not clean. That’s when I do this: “This works, but I feel like it’s messy. Where is the problem?” And AI usually points out things like: repetition bad structure unnecessary complexity That’s useful. Because I already solved the problem — now I’m improving it. Real Scenario 3 — I Don’t Understand My Own Code This happens more than I’d like to admit.