The Margins
Tech

The Part AI Can’t Do for You

2 min read

A few years ago, the hard part of building software was typing it out. Now I can describe a feature in two sentences and watch a working version appear. Most days I’m grateful for that. Some days it worries me, because I’ve noticed how easy it is to ship code I don’t fully understand.

Here’s the kind of thing that catches you. Say you’re building an order system where services talk through messages, like Sagaflow, the event-driven order and inventory project I’ve been working on. An “order placed” message arrives, a consumer subtracts stock, done. The code an AI gives you for this is clean, reads well, and passes the test you wrote.

Then you remember that most message systems guarantee a message arrives at least once, not exactly once. Sometimes it arrives twice. Now one order removes two units of stock, and nothing crashes, nothing logs an error, and the numbers are quietly wrong. The fix is idempotency: process the same message ten times and the result is the same as processing it once. The AI will write that for you too, but only if you know to ask.

That’s the whole job now. The typing got cheap, but the questions didn’t. What happens if this runs twice? What if it runs out of order? What if the database is slow, or the user clicks again? Every one of those comes from fundamentals, and no tool hands them to you.

If you’re a first-year student reading this, here’s what I’d tell you:

Use the tools. They’re good, and refusing them won’t make you a better engineer. But after every piece of generated code, read it line by line and explain it to yourself like you’re teaching it. If you can’t, you don’t own that code yet, and it will come back to bite you at the worst possible time.

Learn the boring things properly: how a request travels, how data gets stored, what fails and how. Those are what let you review AI’s work instead of just trusting it.

The people who’ll do well in the next ten years won’t be the fastest typists or the ones who avoid AI. They’ll be the ones who can look at working code and say “this will break when...” and be right.

That’s a skill you build slowly, one bug at a time. Start now.

Comments

No account needed. Leave a name if you like, or stay anonymous.

By email

New pieces, nothing else.

One short note when something new goes up. No schedule, no round-ups, and your address never leaves this list.