sorbet-rails
A set of tools to make the Sorbet typechecker work with Ruby on Rails seamlessly. (by chanzuckerberg)
rbs
Type Signature for Ruby (by ruby)
Our great sponsors
sorbet-rails | rbs | |
---|---|---|
1 | 16 | |
627 | 1,669 | |
0.5% | 2.2% | |
10.0 | 9.1 | |
11 days ago | 7 days ago | |
Ruby | Ruby | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sorbet-rails
Posts with mentions or reviews of sorbet-rails.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-28.
-
Crystal for Rubyists
There are solutions like sorbet[^1] and sorbet-rails[^2]. Have you tried them?
[^1]: https://sorbet.org/
rbs
Posts with mentions or reviews of rbs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-17.
-
Ruby 3.2’s YJIT is Production-Ready
Ruby does have optional type annotations, if you want them:
- Crystal for Rubyists
-
Is anyone using RBS?
Is anyone using RBS? Or, is it still half-baked? I haven't seen any recent posts about it this year. Though, I see the repo has some recent activity.
-
RBS introduced manifest.yaml
Currently rbs collection resolves stdlib dependencies, but rbs -r LIB option doesn't resolve them unfortunately. For instance, logger depends on monitor, but rbs -r logger doesn't load monitor.
-
Catching up on things
Here is link number 1 - Previous text "RBS"
RBS is a nice new feature but what's really cool, and I hope it will be include in the standard library, is Async
-
The future of rbs collection
Partial clone reduces the impact, but it just procrastinates the problems.
-
rbs collection was released!
rbs collection has other known issues. See https://github.com/ruby/rbs/pull/589 and https://github.com/ruby/rbs/issues/794 for more information.
-
Ruby Structs with type specifications for the properties
Specify simple types (with class names or literal values), or complex types (with RBS notation) for each property of your struct:
-
Ruby through the lens of Go
Ruby is slowly starting to drift towards better type functionality, with first Sorbet and then RBS. But you don't need any static typing tool in your own code to do things smarter.
What are some alternatives?
When comparing sorbet-rails and rbs you can also consider the following projects:
dry-validation - Validation library with type-safe schemas and rules
sorbet - A fast, powerful type checker designed for Ruby
typeprof - An experimental type-level Ruby interpreter for testing and understanding Ruby code
steep - Static type checker for Ruby
Ruby on Rails - Ruby on Rails
rubygems - Library packaging and distribution for Ruby.
ruby-packer - Packing your Ruby application into a single executable.
RubyGems - The Ruby community's gem hosting service.
gem_rbs_collection - A collection of RBS for gems.
Hanami - The web, with simplicity.
rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide.
steep-vscode - VSCode extension for Steep