~/talk

Exception Handling Designing Robust Software

Talkat Rails Pacific 2014 · 2014-09-26..09-27· [ruby-on-rails, ruby]
slides:none on file

Covers concrete Ruby patterns: when to raise vs return objects, why rescuing Exception hides bugs, and how to keep original exception when converting low-level errors into higher-level ones. Shows rescue/ensure/retry syntax, warns against raising inside ensure, and presents pragmatic strategies — a simple retry counter, a circuit breaker for external calls, and exception collection for bulk data processing. Includes a two-resource failure challenge and argues for documented, levelled error guarantees.

AI-written summary · about

  1. 0:00Exception handling intro
  2. 1:17Why exception handling matters
  3. 4:57Ruby basics
  4. 12:12Proper exception use
  5. 16:26Raising in rescue
  6. 18:53Avoid resource leaks in ensure
  7. 20:15Document exceptions in libs
  8. 22:46Strategy overview
  9. 23:12Exception safety levels
  10. 27:35Define safety levels
  11. 28:40External call strategies
  12. 30:09Circuit breaker pattern
  13. 30:51Batch exception collection
  14. 32:03Delegate to callers
  15. 33:09Alcohol vs exceptions
  16. 35:41Summary & Q&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.