Rbs Alternatives
Similar projects and alternatives to rbs
-
-
-
Mergify
Automate your Pull Request with Mergify. Mergify is the most powerful merge queue tool that offers speculative checks, batch merges, and multiple queueing options. Coordinated with any CI and fully integrated to GitHub. Get started or request a demo!
-
-
typeprof
An experimental type-level Ruby interpreter for testing and understanding Ruby code
-
-
-
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
-
-
-
-
-
rubocop
A Ruby static code analyzer and formatter, based on the community Ruby style guide.
-
-
minitest
minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
-
-
-
-
rbs reviews and mentions
-
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.
-
Enhance repository pattern with refinements
I'm a big fan of these kind of solutions because of its opt-in nature. Just like with rbs in separate files, just for most important code, I think there is a place for ideas with refinements for this code as well.
-
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:
-
49 Days of Ruby: Day 23 - Type Checking
What does it look like? This is an example from the README for RBS the gem used for static typing in Ruby:
-
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.
-
Shedding a Light on Duck Typing
Because of duck typing in Ruby, defining this contract and enforcing it is unnecessary. However, Ruby 3 will be shipping with a way to define type signatures, called RBS. RBS includes a mechanism to define interfaces, which you can read more about here.
-
How is a type annotated to allow nil values in Ruby 3?
Here's an example from regexp.rbs:
-
How to express this data type in Ruby?
Numeric? and Numeric | nil are RBS syntax, but RBS goes in a separate file, not in your Ruby code. (I have RBS, because it comes with Ruby 3.0, but I don't use RBS.)
-
What's New in Ruby 3.0?
RBS syntax document suggests that the example you quoted is specifically for keyword arguments, and positional arguments are more akin to initialize(String login, String email). The parameter name being optional which makes sense since the caller doesn’t care, unlike in keyword arguments where you need to know the keyword name to call the method.
Stats
ruby/rbs is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.
Popular Comparisons
Are you hiring? Post a new remote job listing for free.