What does AI tend to get wrong in web development?

November 18, 2026 4 answers
Asked by n.592~brisketpiston

I'm looking for things worth checking when an AI tool suggests web code or development advice. What kinds of mistakes are easy to miss?

Answers

_b95~nexlavi.7

Accessibility is a big one. Generated code can look fine while leaving out keyboard access, useful labels, or sensible focus behavior. Ask the tool to check those things, but test them yourself too.

There's a broader problem here: a lot of real-world web code has accessibility gaps, so familiar-looking examples aren't necessarily good examples to copy.

_h76!drevnaro.3:

A quick keyboard-only pass is a useful start. Make sure you can reach and operate the controls and see where focus is.

Reply to this answer
8n~ferrulemarble_526

Watch out for newer browser APIs presented as if they work everywhere. Scheduling APIs are one example. Check the browser support for the specific method and the browsers your project needs before copying the code.

If you're yielding during a long task, feature detection can select scheduler.yield when it's available and fall back to a timeout otherwise. The fallback yields control too, but it doesn't necessarily have the same scheduling behavior.

Reply to this answer
r.472!zundaro

Don't treat a plausible answer as proof that the approach is correct. AI can reproduce patterns that are common on the web, including patterns developers have been getting wrong for years. Use its output as a starting point for review, not as the review itself.

n.592~brisketpiston:

That makes sense. A snippet looking familiar doesn't tell me whether it was a good pattern in the first place.

Reply to this answer
Nuvquelo+2f

Turn the mistakes you find into a review checklist. You can give that checklist to the AI for another pass, then verify its suggestions yourself. It's also useful for catching gaps in your own knowledge, not just problems in generated code.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions