What About Static Typing in Ruby?

23-Aug-2024 1624
I’ve tried writing this literally a half-dozen times. And it always feels like it slips out of control and gets too abstract to be useful.So, let’s start with something concrete. And we’re going to wind up splitting this into multiple parts. Probably two, but honestly, at this point who knows?This all got started because I was discussing the use of runtime checking using Sorbet. The other person gave me a code snippet and asked how I would manage it without type checking. We kind of got distracted and I never really answered, but then I spent literally the next month trying to answer the question in my head. It’s echoey in there.

Free eBook download

Download all our eBooks for free from Gumroad!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these books offer thousands of essential questions and answers across multiple languages. Download the complete collection for free from our Gumroad page. Free Ultimate Job Interview Preparation eBook collection