~/talk

A SOLID takedown of OOP

Talkat DDD Perth 2023 · on Tuesday, 2023-10-10· [software-architecture]
links:none on file
slides:none on file

Argues that SOLID’s goals—lowering blast radius and easing evolution—are achievable without class-based OOP, using TypeScript examples instead of heavyweight hierarchies. Demonstrates a shapes example where class inheritance creates the circle/ellipse problem while composition via functions, interfaces, records, modules avoids it; shows an importer implemented as a pure function returns a record and scales under concurrency where a stateful importer breaks; exposes stack race conditions and promotes immutable data. Uses Node/TypeScript tooling (first TS issue #306 → ~50,000) and finds the functional approach simpler and effective.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:08From OOP advocate to critic
  3. 3:15JavaScript and TypeScript shift
  4. 5:01Talk overview and goals
  5. 8:07FIRM building blocks explained
  6. 10:14SOLID principles and coupling
  7. 11:39OOP pillars overview
  8. 12:22Inheritance pitfalls
  9. 15:32Shapes example Ryu vs Chun
  10. 18:44Encapsulation benefits and flaws
  11. 20:50Stack encapsulation example
  12. 25:02Document importer class critique
  13. 27:29Pure function alternative
  14. 28:10Concurrency and encapsulation
  15. 30:56Encapsulation alternatives
  16. 33:21Domain driven design critique
  17. 35:04Abstraction and type systems
  18. 37:12Classes as types limitations
  19. 38:15Type expression challenges
  20. 41:27Service evolution example
  21. 44:12Conclusion and summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.