# Learning by copy-paste

> Episode of [Frontend First](https://podistic.com/podcast/frontend-first.md) · Published May 24, 2023 · Duration 41:00 · Episode 166, season 1

- **Listen on Podistic:** https://podistic.com/episode/learning-by-copy-paste
- **Audio:** https://cdn.simplecast.com/audio/598aebea-91aa-4070-84b0-f8d21a4be43d/episodes/216cf68c-e569-4850-8aa8-e95aec3391d2/audio/ea09c6d0-1409-4f43-80e0-dbc65e932df0/default_tc.mp3?aid=rss_feed&feed=sOJAMohP (audio/mpeg)

## 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:

*   [Dan’s tweet](https://twitter.com/dan_abramov/status/1659348147150245889)
*   [Build UI Newsletter](https://samselikoff.ck.page)
*   [Sam’s Server Actions video on YouTube](https://youtu.be/OAmp3GTfZnU)
