How Programming In Other Languages Made My Ruby Code Better
summary
Production work spans more than 15 languages and specific influences are Go, Elixir and Crystal. Go gets used for fast network services and real concurrency; Crystal shows near‑drop‑in Ruby syntax with static typing (a Sidekiq port completes quickly). Code moves to struct-like data containers and service objects with dependency injection, separating persistence from business logic so models become immutable data holders. Tests shrink: fewer external mocks, no expect_any_instance_of, faster unit runs. Errors get package tagging via modules and wrapped exceptions for clearer handling.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 7:27Exploring Go language influence
- 11:25Refactoring Ruby with structs
- 16:25Stateless business logic in Ruby
- 24:48Adopting functional style
- 33:22Dependency injection in Ruby
- 35:10Powerful error handling
- 39:25Designing without default parameters
- 43:23Simplicity and conventions
- 45:55Crystal’s impact on Ruby
- 51:01Q&A and closing








