Michel Weststrate creator of Mobx and Immer Libraries for JavaScript

Michel Weststrate creator of Mobx and Immer Libraries for JavaScript

Joel interviews Michel Weststrate, author of Mobx and his new library, Immer. Today they get into the power of Immer, its early success on Github, common mistakes in state management, and what is next for Mobx.

Immer is a light-weight, immutable state-management tool. Michel talks with Joel about some of its capabilities. Immer takes an object and a function and can track all the changes made to that object, it then gives you back the original object and a mutated copy. Immer can replace reducers, Michel calls them "producer" functions as they "produce" the new state.

Joel then asks Michel "what makes state management so hard for people and are they overcomplicating it?" This question leads to Michel explaining that people don't think enough about the structure of their state enough up front. When you talk about state, there are three distinct concepts, values, references, and identities. However, people tend to only think of state purely as data. "You have to think about what is going to store it and what is going to reference it."

Michel talks about how the mobx-state-tree fits into an application. Mobx is unopinionated; it doesn't tell you how to organize your stores. mobx-state-tree, however, is very explicit about the three concepts of state, values, references, and identities. With mobx-state-tree you organize your data into models and tell it how they relate to each other. It's all about consistently organizing your state!

What's next for Mobx? Michel is currently working on some exciting features using proxies to make Mobx even more transparent than it is now. Michel has also been thinking about improving on asynchronous processes and how to leverage async actionables.

Transcript

"Michel Weststrate creator of Mobx and Immer Libraries for JavaScript" Transcript

ResourcesMichel WestrateJoel Hooks:

Avsnitt(77)

Full-Stack Signals in Solid, AI Development, and the Future of Web Frameworks

Full-Stack Signals in Solid, AI Development, and the Future of Web Frameworks

In this episode of What's Good, Joel Hooks sits down with Dev Agrawal, a member of the SolidJS core team, to discuss the evolving landscape of web development, AI-assisted coding, and modern framework...

3 Feb 202545min

Local-First Development and Asymmetric Bets: Dax Raad on Web Dev Trends and Career Strategies

Local-First Development and Asymmetric Bets: Dax Raad on Web Dev Trends and Career Strategies

Dax Raad, known for his strong opinions on Twitter, sat down for a chat about web dev, career moves, and building cool stuff. He's not afraid to throw some heat at popular tools like Next.js, though h...

18 Sep 202449min

Nitro, Vinxi, and RSCs - What's Good with Dev Agrawal

Nitro, Vinxi, and RSCs - What's Good with Dev Agrawal

Dev and Joel discuss React Miami conference, praising its fun atmosphere and location. They chat about React Server Components, with Dev sharing his experience building a mini framework. They talk abo...

7 Sep 202429min

Alex Reardon on Balancing Work, Life, and Large Side Projects

Alex Reardon on Balancing Work, Life, and Large Side Projects

Alex took spent the last year and a half creating his course, The Ultimate Guide to Understanding DOM Events, at egghead. Finding the time to work on a side-project like this isn't easy, and it requir...

2 Juni 202139min

Ryan Florence Talks About Bringing Web 1.0 Philosophies Back With Remix

Ryan Florence Talks About Bringing Web 1.0 Philosophies Back With Remix

Ryan’s background as a musician taught him many lessons that would eventually apply to his current career. As a musician, he learned about composition, sales, and even programming so he could build hi...

19 Dec 202055min

Jacky Alciné on How The Software Field is 75% Code and 25% Presentation

Jacky Alciné on How The Software Field is 75% Code and 25% Presentation

Perhaps the most important skill that a software developer can have is the ability to ask good questions. Questions will lead to the answers that you actually need. Formulating good questions is key. ...

7 Dec 202033min

Chris Biscardi on Showing Up, Learning, and Doing the Work

Chris Biscardi on Showing Up, Learning, and Doing the Work

Programming might be the quickest path for someone to start earning six figures. But, it may be a quick path, it is not an easy path. You have to either be having fun or be interested in some way. You...

21 Nov 202037min

Shawn Wang Talks About How To Grow Your Reputation As A Developer

Shawn Wang Talks About How To Grow Your Reputation As A Developer

Getting a job as a web developer right out of the gate isn't easy. People often face rejection after rejection. But, you don't have to take the "front-door" to get a developer position. You can also t...

10 Nov 202054min

Populärt inom Business & ekonomi

framgangspodden
varvet
badfluence
rss-jossan-nina
rss-borsens-finest
avanzapodden
svd-tech-brief
rss-svart-marknad
uppgang-och-fall
fill-or-kill
rss-dagen-med-di
borsmorgon
kapitalet-en-podd-om-ekonomi
affarsvarlden
rss-kort-lang-analyspodden-fran-di
tabberaset
lastbilspodden
24fragor
bathina-en-podcast
borslunch-2