The Moment I Realized AI Coding Was Broken.

It was 10PM. I’d just asked Claude to add a navigation component. Thirty seconds later, I was staring at this:

// What the AI generated (again)
const Navigation = ({ items }: NavigationProps) => {
const [open, setOpen] = useState(false);
return <nav className="navigation">...</nav>
}
export default Navigation;

Nothing wrong with it, technically. Except I don’t use default exports. I use named exports. And useState should come from our custom hooks. And we use ‘isOpen’, not ‘open’. And the TypeScript interface should be exported separately like every other component in our codebase.

I’d explained this exact pattern so many times I’d lost count.

Same pattern. Different day. Different component. Different wrong impl…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help