~/talk

How to Build a Functional API

Talkat Scala World 2017 · 2017-09-16..09-19· [api-design, functional-programming]
slides:none on file

Migrates a large economics Excel model to Scala by parsing named ranges with Apache POI and turning every partial accessor into a total one that returns an Either parser error. Builds a safe-cell wrapper, uses Apache POI and the refine library to push validation earlier, and leverages Traverse/sequence plus applicative instances so six small parsers derive all others; result is an extensible Parser trait that produces precise error variants (missing name, missing cell, invalid format).

AI-written summary · about

  1. 0:00Introduction
  2. 0:46Partial Functions
  3. 7:43Use Case
  4. 10:00Excel API
  5. 16:50Building Blocks
  6. 23:40Parser
  7. 25:35Production
  8. 26:38Product
  9. 27:48Flatmap
  10. 28:38Cartesian Frontier
  11. 30:11Review
  12. 31:09Conclusion
~/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.