~/talk

Function reuse is just wishful thinking

Talkat ScalaIO 2022 · 2022-10-27..10-28· [functional-programming, scala]
slides:none on file

Claims that practical code forces Functor/Apply/Applicative/Monad patterns and offers a design trick called wishful thinking that makes “someone else” build the missing bridge. Starts from a PS5 crawler and implements concrete functions: affordable, cheapest, totalCost, flip (List[F[A]] → F[List[A]]), flatten/flatMap; shows lift / map, apply / applicative, flatMap / monad as the actual tools. Demonstrates these compose to reuse one core function across Option/Future/Try and that the approach actually works.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:55Functors explained
  3. 10:46Applicatives and apply
  4. 19:33Applicatives in depth
  5. 27:29Monads and flat map
  6. 37:33Summary and conclusion
~/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.