~/talk

Clean Up Your GOOOP: How to Break OOP Muscle Memory

Talkat GopherCon 2023 · 2023-09-26..09-29· [go]
links:none on file
slides:none on file

Argues that copying OO habits into Go produces “goop” with concrete examples: structs are not classes and embedding is not inheritance, which leads to surprising method dispatch; packages, not types, are the unit of encapsulation so huge packages can blow builds (one refactor turned 7–8 minute builds and 80 MB binaries into sub-second builds and 7–8 MB by splitting packages); interfaces are implicitly satisfied and the consumer defines interfaces, avoiding huge 91‑method APIs and 60‑method service interfaces.

AI-written summary · about

  1. 0:00Breaking OOP habits
  2. 1:13What is OOP
  3. 4:27Go vs OOP
  4. 9:03Embedding vs inheritance
  5. 11:15Packages as design units
  6. 11:36Circular dependencies
  7. 15:33Consumer-defined interfaces
  8. 21:10Project structure pitfalls
  9. 26:10Idiomatic Go architecture
  10. 27:54SOLID in Go
  11. 31:51Summary
~/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.