JavaScript needs a model layer - podcast episode cover

JavaScript needs a model layer

Apr 12, 202343 minEp. 160
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Sam and Ryan talk about updating Build UI to support lifetime memberships. They chat about the site’s current architecture, the strengths and weaknesses of objects vs. functions, how the full stack JavaScript community could benefit from a proper model layer like ActiveRecord, the challenges of using GraphQL on the backend, Prisma, and more.

Topics include:

  • 0:00 - Intro
  • 1:09 - Current architecture + single purchase
  • 6:30 - Rails model layer. OOP vs functional
  • 13:55 - What are classes good at, what are functions good at
  • 23:53 - Composition vs. inheritance
  • 31:44 - graphql. overfetching is not a problem on the backend. prisma.

Links:

For the best experience, listen in Metacast app for iOS or Android