3min chapter

JavaScript Archives - Software Engineering Daily cover image

React.js with Sebastian Markbage and Christopher Chedeau

JavaScript Archives - Software Engineering Daily

CHAPTER

The Problem of Diffing Two Trees in React

There's already existing knowledge and computer science around how you can use immutable data structures to determine that something very deep within it is unchanged. So there's a lot of work from Rich Icky on enclosure. Another interesting data point is Git, the virtual control system, where basically you don't have to transfer objects that you are guaranteed to already have. But the principle with immutable data structures is that if you have something of ID, like a reference or hash, that tells you that something about the entire subtree of the structure,. You can compare just that ID to see to learn something about the whole tree.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode