~/talk

Using Immutable Data Structures

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [developer-experience]
slides:none on file

Argues that making data immutable in C# reduces runtime errors and removes many cross-thread synchronization needs, showing practical tools and tradeoffs: uses System.Collections.Immutable to demonstrate that "mutating" an immutable list returns a new instance, shows record types and AutoMapper/Newtonsoft.Json mapping via constructors for immutable DTOs, and diagrams a real refactor where an added setter broke an interface contract. Recommends the builder/factory pattern for configurable services and notes EF Core can hydrate immutable entities but only with significant boilerplate, so weigh cost versus benefit.

AI-written summary · about

  1. 0:00Introduction
  2. 4:27Fsharp
  3. 7:59Bad immutability jokes
  4. 9:52Understanding the state of your application
  5. 12:29Example
  6. 14:14Synchronization Quadrant
  7. 16:02Moores Law
  8. 17:17Multithreaded Computing
  9. 18:17History of Immutability
  10. 22:02Anonymous Types
  11. 24:25Unnecessary Setters
  12. 27:35Why Setters
  13. 30:08AntiPatterns
  14. 32:56System Collections
  15. 35:00AutoMapper
  16. 37:08Builder Pattern
  17. 41:14Entity Framework
  18. 46:50Summary
  19. 51:38Redux
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.