~/talk

A Skeptic’s Look at scalaz’ Gateway Drugs: A Practical Exploration

Talkat Philly ETE 2015 · 2015-04-07..04-08· [functional-programming, scala]
slides:none on file

Practical notes on using scalaz in production: converts Option chains to \/ (disjunction) so failures carry messages instead of silent None, and replaces ad-hoc exceptions with fromTryCatchNonFatal returning disjunctions. Uses Validation[NonEmptyList[String], A] and applicative operators (star/pipe) to accumulate multiple error messages (example: DB user and address checks) and returns a non-empty list of errors to the frontend. Proven useful on real API servers and easier to debug than thrown 500s.

AI-written summary · about

  1. 0:00Intro
  2. 1:24How I've Traditionally Seen scalaz
  3. 6:18Scala's Either: The Limitations
  4. 7:24Disjunctions as an Alternative
  5. 11:31Digression: Scala Option
  6. 17:04Validation looks similar to Vat first glance
  7. 20:53Sticking it all together
  8. 28:20One last function: Error Handling
  9. 31:32Final Thought On Naming
~/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.