~/talk

From OOP to FP

Talkat Software Crafters Barcelona 2021 · on Saturday, 2021-10-23· [functional-programming]
links:none on file
slides:none on file

Asserts there is no strict boundary between OOP and FP and that languages borrow features, then shows practical migration advice: use a function that returns a function (closures) to inject repositories, clocks or RNGs, replace in-place mutation by returning new objects (Ship of Theseus analogy), and keep all side effects outside an establish a boundary so inner code is purely functional. Claims this makes testing simpler (no heavy mocking, just provide functions), accepts performance and complexity tradeoffs, and illustrates with Java/Spring, Haskell, Docker and Mockito examples.

AI-written summary · about

  1. 0:00Start
  2. 3:43Object-Oriented Programming
  3. 4:38Formalization of a Protocol
  4. 16:18What Does Functional Programming Mean
~/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.