Advanced Data Structures
Advanced Data StructuresMaps and Sets
Setare new data structures that have distinct advantages in various use cases. We’ll study both in detail, including their “weak” counterparts:
Advanced Data StructuresPROJECT: Spies and Stubs
Map, we’ll build a small “spying” library that we can use to monitor function invocations in our tests.
Advanced Data StructuresProxies
Advanced Data StructuresPROJECT: Buffered Proxy
Although there aren’t many obvious use cases for the
Proxytype, one place where it proves handy is to “stage” proposed modifications to an object, without mutating the underlying values directly. We’ll implement a “buffered proxy” utility, and use it in an “edit form” context.
Advanced Data StructuresWrap up and Recap
We'll recap everything we've covered today, and set our sights on tomorrow's agenda.