3min chapter

Frontend First cover image

JavaScript needs a model layer

Frontend First

CHAPTER

How to Use Prisma to Organize Functional Code

Jason: Prisma does have a thing called extends which you can basically do like you know Prisma dot user Oh really my own custom function so you can write your own custom queries. I haven't seen anything that adds methods For behavior to a loaded user or whatever to the return object um Now you could of course like do You could invent your own system here. Yeah,Yeah interesting well Hopefully eventually someone in the JavaScript ecosystem will make this because I would very much like it. Jason: There's plenty of people who use functional programming languagesUm To build systems and there's ways to organize functional code that have nothing to do with UI Um, and they would say there's no need for objects

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode