Readit News logoReadit News
haven commented on Rails Is Good Enough   onurozer.me/rails-is-good... · Posted by u/onurozer
fny · a year ago
I love Rails and Ruby and miss the ecosystem dearly, but the joy dies once you find yourself lost in layers of code without any types or IDE support. This is especially true on large teams.

So what are your options... Sorbet? Does this feel like Ruby?

    sig do
      params(x: Integer)
      .returns(String)
    end
How about RBS? Does writing the equivalent of header files for every function and class feel like Ruby?

So unfortunately I'm no longer an evangelist or practitioner.

haven · a year ago
Dynamically typed languages aren't out in the cold like they used to be with IDE support. Most of the advanced LSP work going on isn't based on explicit types signatures yet they work well. See https://railsatscale.com/2024-07-18-mastering-ruby-code-navi...
haven commented on Sorbet Compiler: An experimental, ahead-of-time compiler for Ruby   sorbet.org/blog/2021/07/3... · Posted by u/jez
joelbluminator · 4 years ago
"Stripe relies heavily on gems with native extensions, and as you can imagine, a multi-million line Ruby codebase over time starts to depend on Ruby-the-implementation, not just Ruby-the-language.

I get it, this is a big one. How big though? I wish as a community we had a list of important gems that have an extension, maybe with a combined effort we can port them to the JVM or whatever else so people can switch between JRuby/Truffle/MRuby with relative ease. I know about the big ones: Of course Postgres/MySql gems come with extensions and probably most Ruby web servers. But what else - what are the big ones?

haven · 4 years ago
TruffleRuby supports many C extensions like DB adapters out of the box like CRuby. JRuby has Java ports for most popular gems that ship alongside them. Nokogiri is one gem that's a Rails dependency and stands out as a bit of a pain, but both JRuby and TruffleRuby put in substantial effort to support it too. All three generally work with web servers, including Puma, which ships with Rails. There are still gaps in C extensions that TruffleRuby covers and lack of Java ports for less popular but still used gems. They may have some things like gRPC C extensions that don't work and they don't want to port them either. Generally the ecosystem just works between these popular Ruby implementations.

MRuby uses MGems and is just a different ecosystem entirely. It has parallel libraries but they're not shared with the above implementations.

haven commented on RBS, Ruby’s new type signature language   developer.squareup.com/bl... · Posted by u/mootrichard
loktarogar · 5 years ago
.rb is a ruby file, so it's more what the s stands for
haven · 5 years ago
Signature. The Ruby::RBS library used to be called Ruby::Signature.
haven commented on Stripe Capital   stripe.com/capital... · Posted by u/jonknee
abalone · 6 years ago
Stripe is really coming after Square. Square Capital is an extremely similar product (prequalifies you & autopays based on your payment volume).

Square has a platform / payments SDK but if you look at the Github repo it's a disorganized mess versus Stripe's with virtually no "stars".[1] There's also Stripe Terminal which is a platform-y approach to Square's register/terminal. I wonder how much longer until they go after Square's cash app.

[1] https://github.com/square https://github.com/stripe

haven · 6 years ago
Not to nitpick, but a quick check shows Square has way more stars overall. (233,343 stars for Square repos and 30,982 stars for Stripe repos.) If you’re talking about Square’s brand new SDKs, they of course start with zero stars and some are just weeks old.

u/haven

KarmaCake day1168November 27, 2011View Original