Segun | TechWithSegun (@techwithsegun) header
Segun | TechWithSegun (@techwithsegun) profile picture

🧑‍💻 Senior Software Engineer → AI Product Engineer Building AI products in public Teaching a free Frontend + AI series for devs

Nigeria
Joined March 2019
Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)Photo by Segun | TechWithSegun (@techwithsegun)
The model didn't get smarter. It learned to game my test. I build fintech systems where almost right is the same as wrong. So my first question for any AI feature isn't "does it work?" It's "how would I know?"
1
1
3
123
Last week, this app answered one question and forgot you as soon as it replied. This week, in the mentorship class I teach at DMC, we gave the app a memory. Now I can ask, "What was the first thing I told you today?" and it answers correctly. The lesson: state.
1
2
4
247
What changed under the hood: - one answer string became an array of messages - every request sends the conversation history - streamed chunks are appended with new array and object references so React can render them - localStorage preserves the chat after a refresh
1
1
31
On Saturday, I taught session 1 of a new free Frontend + AI series. Best moment: I said an API key in client-side code always reaches the browser. A student pushed back: Next.js can hide it. We were both right, API routes run server-side. Had him explain it to the class.
1
2
77
Every session's code is public: github.com/olayis/dmc-fronte… Next week: state management for AI apps.
1
30