~/talk

Ducks and monads: wonders of Ruby types

Talkat EuRuKo 2018 · 2018-08-24..08-25· [ruby]
links:none on file
slides:none on file

Argues that Ruby needs explicit runtime types to avoid silent data corruption, cites a study of 1,000+ Rails apps where two of the top ten errors are nil-related (iterating a null, calling id on nil), and gives a concrete Rails JSON-upgrade bug as an example. Recommends using dry-types (and dry-struct) for strict constructors, using dry-monads result/either patterns with bind/value_or and do-notation to build pipelines, and removing ActiveSupport's blank and present which mask nilness.

AI-written summary · about

  1. 0:00Start
  2. 5:47Silent data corruption: JSON in Rails
  3. 13:38Complex definitions
  4. 21:00Computations: bind
  5. 22:08Handling errors: or
  6. 22:51Non-monadic computations: fmap
  7. 23:33Escaping the context: value or
~/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.