News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by whakim on Friday November 19, 2021 @12:37PM (#29279889)
I'm surprised that you never have bugs of the type "this thing is nil and I didn't expect it to be". This is by far the most common type of bug I see in production Ruby applications and it simply can't happen with something like Sorbet.
Re:Where is Ruby Headed in 2021? by joelbluminator on Friday November 19, 2021 @01:07PM (#29280307)
Null exceptions can even happen in Java. I wasnt refering to those.
Re:Where is Ruby Headed in 2021? by whakim on Friday November 19, 2021 @01:19PM (#29280455)
But most types (besides primitives) in Java are nullable, right? Sorbet literally wouldn't let you write this code:

https://sorbet.run/#%23%20typed%3A%20true%0Aextend%20T%3A%3A...

Null is simply the most frequent example of this issue. Getting an integer rather than a string is super common, for example. Or a string instead of a date.

Re:Where is Ruby Headed in 2021? by joelbluminator on Friday November 19, 2021 @01:49PM (#29280785)
What does super common mean? Do I see these bugs once a month? No, I do not. Null exceptions are common I agree with that. For me its not enough to appreciate something like Java or Go but I understand the argument.