Alex Moore (@ikindacode) 's Twitter Profile
Alex Moore

@ikindacode

Chasing clean code and clever fixes. All in on Vercel, NextJS, v0, and AI SDK. Yes, of course I @shadcn.

ID: 1786751121366634496

linkhttp://ikindacode.com calendar_today04-05-2024 13:34:08

214 Tweet

43 Followers

110 Following

Alex Moore (@ikindacode) 's Twitter Profile Photo

Migrating to AI SDK v5 and adding Hayden Bleasel's AI Elements, and so far I've deleted 100 lines of code, rid myself of like 4 useEffects (😫🙏🏼 ty!), and honestly everything just feels ... better. As good as v4 was, v5 is so much more intuitive... and enjoyable. Still a ways

Alex Moore (@ikindacode) 's Twitter Profile Photo

Hear me out: remove the 'automatic scroll to bottom' feature on AI chat interfaces. AI responses are always rendered WAY faster than I can actually read. This creates an annoying UX, wherein I have to stop the scroll to bottom 'feature' immediately so I can scroll back up and

Alex Moore (@ikindacode) 's Twitter Profile Photo

Trying to avoid too many <Loader />s in the UI, I opted for a text shimmer using Animate UI while the AI SDK generates a concise conversation title. Client is loving this. 🔥

Alex Moore (@ikindacode) 's Twitter Profile Photo

Ok friends, a little UI/UX help if you would. See the ugly gray box that appears right after 'Thinking...' disappears? This signals that the status no longer === 'submitted' (using AI SDK 5). Instead, I believe at this step the AI is calling a tool (queryKnowledgeBase). How can

Alex Moore (@ikindacode) 's Twitter Profile Photo

I have really felt this lately. The time I’ve spent learning Next.js is really paying off now. Understanding full stack best practices and stacking Next, Tailwind, Shadcn, and Drizzle in Cursor (even without any rules) just flies. ⚡️

Alex Moore (@ikindacode) 's Twitter Profile Photo

I think the single most annoying UX of an Apple MacBook is when I click the Finder icon in my Dock, if there isn't a Finder window already open on the current desktop, Mac OS will slide me over 4 desktops to the current open Finder window instead of just opening a new one.

Alex Moore (@ikindacode) 's Twitter Profile Photo

Can anyone help me understand how to keep messageIDs in sync between the useChat hook and my database? I'm saving messages to my database with the onFinish callback from streamText.toUIMessageStreamResponse and creating a nanoid for them. How can I change my method to store the