Build it Better is a podcast that focuses on advanced architecture and web development. In each episode, experts in these fields share their insights and knowledge on the latest technologies, techniques, and trends in the industry. The podcast covers a wide range of topics, including exploring various architecture patterns and web development frameworks. Whether you’re a seasoned architect or web developer, or just curious about the latest advances in these fields, Build it Better has something for you. Listen in and learn how to push the boundaries of what’s possible in architecture and web development.
Monday Jul 10, 2023
Monday Jul 10, 2023
In this interview on the "Build It Better" podcast, Tracy Lee and her co-hosts Jesse Tomchak and Adam Barrett are joined by Dominic Gannaway from the Svelte core team. Dom is known for his work on the React team.
Tracy asks Dom about his role in naming hooks in React. Dom shares that when the team was developing hooks, they needed a name and had a list of options. He randomly suggested "hooks" as a placeholder, and they eventually decided to keep it as the official name. They thought it fit well with the concept of hooking into logic and incorporating it into a component. Dom mentions that they considered other names like "traits" but ultimately settled on hooks.
Dom mentions React Forget, a newer effort that focuses on precomputing and optimizing performance and code size. He highlights that the work on improving performance and concurrent rendering is still ongoing. He mentions his conversations with Rich Harris, where their ideas on compilers seemed to align even before they formally discussed the topic.
Dom shares specifics of how Prepack compiled components inline and whether it involved a process similar to V8's runtime compilation and execution. Dom explains that they taught Prepack how React works, including JSX and non-JSX syntax. When a component with props was referenced, they treated it as a function call and created a reference. However, the performance gains from inlining components were offset by the challenges of dealing with the "this" keyword.
Overall, this interview provides insights into Dom's experiences working with compilers and awesome open source projects and is a great one to listen to!
Build IT Better is presented by This Dot: https://www.thisdot.co/
Follow This Dot Labs on Twitter: https://twitter.com/ThisDotLabs
Follow This Dot Media on Twitter: https://twitter.com/ThisDotMedia