Home
Categories
EXPLORE
True Crime
Comedy
Society & Culture
Business
History
Sports
Technology
About Us
Contact Us
Copyright
© 2024 PodJoint
00:00 / 00:00
Sign in

or

Don't have an account?
Sign up
Forgot password
https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/04/20/c5/0420c5be-d1fd-d093-9dfe-c13fc2da3627/mza_10716373771984734847.jpg/600x600bb.jpg
Señors at Scale
Dan Neciu
21 episodes
1 week ago
Welcome to Señors at Scale, the podcast where seasoned engineers spill the secrets, successes, and facepalms of building and maintaining software at scale. Join host Neciu Dan as we sit down with Staff Engineers, Principal Engineers, and other senior technologists to dive deep into the hard-won lessons of distributed systems, technical leadership, and scaling products that refuse to stay small. From war stories in incident response to behind-the-scenes architecture decisions, each episode brings a mix of practical insights, hard truths, and a healthy dose of dev humor. If you’ve ever wrang
Show more...
Technology
RSS
All content for Señors at Scale is the property of Dan Neciu and is served directly from their servers with no modification, redirects, or rehosting. The podcast is not affiliated with or endorsed by Podjoint in any way.
Welcome to Señors at Scale, the podcast where seasoned engineers spill the secrets, successes, and facepalms of building and maintaining software at scale. Join host Neciu Dan as we sit down with Staff Engineers, Principal Engineers, and other senior technologists to dive deep into the hard-won lessons of distributed systems, technical leadership, and scaling products that refuse to stay small. From war stories in incident response to behind-the-scenes architecture decisions, each episode brings a mix of practical insights, hard truths, and a healthy dose of dev humor. If you’ve ever wrang
Show more...
Technology
https://d3t3ozftmdmh3i.cloudfront.net/staging/podcast_uploaded_nologo/43958857/43958857-1752848017873-04201c3a562d.jpg
State Management at Scale with Daishi Kato (Author of Zustand)
Señors at Scale
34 minutes 32 seconds
3 weeks ago
State Management at Scale with Daishi Kato (Author of Zustand)

In this episode of Seniors at Scale, host Dan Neciu dives deep into the world of state management with Daishi Kato, the prolific open-source author and maintainer behind three of the most widely used libraries in modern React: Zustand, Jotai, and Valtio. Daishi also shares insights into his new project, Waku, a framework built around React Server Components.

Daishi has spent nearly a decade building modern open-source tools that expertly balance simplicity with scalability. He shares how the announcement of React Hooks got him excited and led him to pick global state as his field to explore, as it was "more like logic" and "off look and feel".

We break down the core philosophies and technical trade-offs between his state management trifecta:

  • Zustand (Zastan): Described as a single global store or global variable. It is minimal, and its philosophical difference from Redux is that it doesn't use reducers.

  • Jotai (Jyotai): Defined as a set of atom definitions, structured more like functions than a single global store. Daishi explains how the concept evolved from a need to avoid JavaScript proxies and selectors for better rendering optimization.

  • Valtio (Valtio): This library is fundamentally based on just using JavaScript objects. It re-introduces proxy-based reactivity because Daishi realized that proxies were now "recognized" and acceptable in the community. We discuss its hook-based API, which differentiates it from MobX's observer pattern.

The conversation then moves to the future of React development with Waku, which Daishi started as an experiment to learn how state management interacts with React Server Components. He explains Waku is suited for small-to-medium-sized web applications and static sites and discusses his vision for it to coexist with, rather than beat, Next.js.

  • What makes Zustand, Jotai, and Valtio different: Global Store vs. Atom Definitions vs. JavaScript Objects.

  • The philosophical difference between Zustand and Redux: Redux is reducers, Zustand is not.

  • How Jotai's atom concept evolved and its goal of render optimization without selectors.

  • Why Valtio embraced proxies and how its hook-based API differs from MobX.

  • The origin story of Waku as an experiment with React Server Components.

  • How React 18's useSyncExternalStore made Zustand even smaller.

  • The challenge of maintaining four popular open-source libraries, with Waku being the current focus.

  • Daishi’s strategy for rejecting feature requests for minimal libraries like Zustand: "We reject everything".

  • Why Daishi prefers a competitive community over a built-in React state manager.

  • Which of his libraries (Jotai) is best suited for use within Waku, as it is an abstraction of state that works on both client and server.

If you're managing global state in React, interested in the internals of popular open-source tools, or curious about the future with React Server Components, this episode is a must-listen.

Follow & Subscribe:📸 Instagram: https://www.instagram.com/senorsatscale/📸 Instagram: https://www.instagram.com/neciudev🎙 Podcast URL: https://neciudan.dev/senors-at-scale📬 Newsletter: https://neciudan.dev/subscribe💼 LinkedIn: https://www.linkedin.com/in/neciudan💼 LinkedIn: https://www.linkedin.com/company/se%C3%B1ors-scale/Additional Resources

🌐 Daishi's Libraries: https://github.com/pmndrs🌐 Waku: https://github.com/dai-shi/waku🌐 SICP Book: Structure and Interpretation of Computer Programs

#react #zustand #jotai #valtio #waku #statemanagement #javascript #opensource #softwareengineering #frontend #webdevelopment #señorsatscale

Don’t forget to like, comment, and subscribe for more engineering stories from the front lines.

Señors at Scale
Welcome to Señors at Scale, the podcast where seasoned engineers spill the secrets, successes, and facepalms of building and maintaining software at scale. Join host Neciu Dan as we sit down with Staff Engineers, Principal Engineers, and other senior technologists to dive deep into the hard-won lessons of distributed systems, technical leadership, and scaling products that refuse to stay small. From war stories in incident response to behind-the-scenes architecture decisions, each episode brings a mix of practical insights, hard truths, and a healthy dose of dev humor. If you’ve ever wrang