~/talk

Static Type Checking in Rails with Sorbet

Talkat RailsConf 2020 CE · 2020-05-04..05-05· [ruby, ruby-on-rails]
links:none on file
slides:none on file

Claims Sorbet finds real bugs early, processes ~100,000 lines/sec, and integrates with editors; the team adds Sorbet to a 2,500-file Rails codebase in six months and generates RBI files via a new Sorbet-Rails gem that models Rails metaprogramming. Adoption yields over 90% files at typing levels and ~66% call-site coverage, uncovers typos and dead code (missing current_academic_year), and adds runtime features like Typed Params and CI/editor checks that work in production.

AI-written summary · about

  1. 0:00Static type checking intro
  2. 2:21Why we adopted Sorbet
  3. 6:52Type checking Rails metaprogramming
  4. 9:14Sorbet Rails introduction
  5. 13:25Generating method signatures
  6. 16:03Models, mailers, background jobs
  7. 17:32Typed Params runtime
  8. 18:19Driving Sorbet adoption
  9. 23:33Step-by-step adoption
  10. 27:54Making types the norm
  11. 29:23Limitations and future work
  12. 30:30Q&A
~/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.