News for hackers. Stuff that matters.
Re:A Deep Dive into Solid Queue for Ruby on Rails by riffraff on Tuesday June 24, 2025 @12:52AM (#44362943)
I would argue when you're passing around stringy JSON-like thingies is when typing is most useful :)

You're not going to misuse an API that takes a Person or Cart, but mixing up two hashes cause you used two different strings as keys can happen easily.

(I do think dynamic typing is mostly fine, but I do wish ruby had optional static typing with some nice syntax instead of RBS)

Re:A Deep Dive into Solid Queue for Ruby on Rails by Lio on Tuesday June 24, 2025 @02:27AM (#44363368)
It’s on the way thankfully.

I’m really excited about Sorbet getting behind the new RBS-inline comment syntax and the prospect of both runtime and static analysis as optional tools when needed.

Re:A Deep Dive into Solid Queue for Ruby on Rails by ch4s3 on Tuesday June 24, 2025 @09:52AM (#44366279)
> You're not going to misuse an API that takes a Person or Cart, but mixing up two hashes cause you used two different strings as keys can happen easily.

This is more or less trivial to catch and fix, I'm just not sure a type system is worth it's weight for that kind of case.