
Episode 166 · Season 1
Learning by copy-paste
About this episode
Sam and Ryan use some recent Twitter discussion on copying + pasting code (instead of abstracting it for reuse) as a springboard for a discussion about how their thinking on low-level UI components and design systems has changed over the years.
Topics include:
- 0:00 - Intro
- 2:16 - Copy-paste vs. creating abstractions
- 11:43 - How we used to build shared UI components
- 15:34 - How we use UI components today
- 22:42 - Is copy-paste the easiest way for developers to implement consistent design?
- 27:41 - When should we create abstractions?
- 37:15 - Designing copy-pasteable APIs
Links:
More from Frontend First
Ryan talks to Sam about reproducing iOS's new image background treatment for his Open Graph Preview tool, opengraph.ing. They talk about different approaches for generating gradients from images, incl…
Sam and Ryan talk about React 19's useActionState hook. They discuss how adding async functions to a plain React app introduces lots of in-between states that developers must grapple with, and how use…
Sam and Ryan talk about using Cloudflare Tunnel for local development, the new React Compiler beta release, and why reading or writing refs during render violates the rules of React.
Sam and Ryan talk about building a useAnimatedText hook that can animate streaming text. They also discuss how React code that uses state changes to approximate events can be simplified, and the benef…
Sam and Ryan talk about how frameworks and infrastructure evolve with each other, using Next.js as a representative example. They discuss how hosting providers like Heroku have always imposed certain…