Hacker Newsnew | past | comments | ask | show | jobs | submit | lasvad's commentslogin

Is that a pro or con? Haha


Also curious about this and questioning its validity…


yes, this. Start the conversations. Start slow and allow yourself to get excited about another opportunity.

IMO burnout is hard to identify in the moment, but looking back, its clear to see :). Keep your job for now, start the job hunt, and good luck.


With Ruby 3 releasing with RBS, for new projects, whats the current advised path? Native RBS or Sorbet? Can they co-exist and if so, is there a point to using both?

Sorbet is something I've been interested in using for a couple years and finally got a round to actually trying it out. I tried to use Sorbet with ruby 3.1.1 but unfortunately it didn't "just work" which I think is crucial for mass adoption. I want to give the benefit of the doubt and say its my local env that causing issues with Sorbet but in a fresh `rails new test_app --api` project, I'd expect `srb init` to work without errors... maybe I need to give it another go, curious on your thoughts above tho! :)


We discovered a bug in `srb init` for Ruby 3.1 recently that a teammate of mine is working on fixing at the moment. It's likely that if you tried again in a few days it'll have been fixed. Sorry about that, totally agree that the out-of-box experience should just work.

I wrote up an FAQ about the state of Ruby 3 and RBS here:

https://sorbet.org/docs/faq#when-ruby-3-gets-types-what-will...

The tl;dr is that RBI files (not RBS files) will probably always be the preferred way to declare types for third party code (because it will always support exactly the same set of features that Sorbet does). We have some people in the community look into teaching Sorbet to read the RBS format, but the existing parsers for RBS files are written in Ruby and are very slow, and there are some ambiguities in the spec that make writing a third party parser that compiles to native code tricky. You can see an attempt to write a fast RBS parser in C++ here[1], but again given that RBI files do everything we need them to right now and we have other features people are asking us for, we haven't prioritized RBS support incredibly highly.

Sorbet works completely fine without RBS files!

[1] https://github.com/Shopify/rbs_parser


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: