~/talk

Type Checking with Sorbet

Talkat NoRuKo 2020 · on Friday, 2020-08-21· [ruby-on-rails, typescript]
slides:none on file

Gradual type checker for Ruby that lets teams add annotations file‑by‑file and run checks with the srb CLI; runtime assertions come from the sorbet-runtime gem so method signatures actually enforce non‑nil and return types during execution. Demo shows T.must, T.let, typed true/false/ignore and generation of .rbi signatures; Rails/gem support is still incomplete but small apps and critical modules (background jobs, payroll) gain fewer runtime argument checks and clearer failures when types mismatch.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48What is Sorbet
  3. 3:58Ruby 3 and Sorbet
  4. 5:46Demo setup
  5. 6:07Type annotations in Sorbet
  6. 11:15Variable type checks
  7. 13:01T.nilable and type safety
  8. 15:50Class method signatures
  9. 19:55Q&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.