fast-ruby
:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms. (by fastruby)
RSpec style guide
RSpec Best Practices (by betterspecs)
Our great sponsors
fast-ruby | RSpec style guide | |
---|---|---|
4 | 5 | |
5,639 | 3,447 | |
0.1% | 0.1% | |
4.6 | 1.0 | |
4 months ago | 11 months ago | |
Ruby | HTML | |
- | - |
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.
fast-ruby
Posts with mentions or reviews of fast-ruby.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-06.
-
Sorry for this noobest question
In this perspective, maybe the compilation of approaches by Fast Ruby provides a similar point of entry.
-
Understading why attr_accessor in Ruby is faster than a regular method
Great article! I'm one of the maintainers of the `fast-ruby` project and I was glad to see that we have a benchmark for those idioms over here: https://github.com/fastruby/fast-ruby/blob/master/code/general/attr-accessor-vs-getter-and-setter.rb 🤓
-
Super readable String operations with `delete_prefix` and `delete_suffix`
Stylistically, chomp has a bit more of the whimsy that you might expect from Ruby, while delete_suffix is a nice mirroring of delete_prefix and more explicitly named. Both have similar performance benchmarks and are faster than sub.
-
Ruby 3.0.0 Released
If you’re interested in speed, check this repo: even among Ruby idioms there are big speed differences.
RSpec style guide
Posts with mentions or reviews of RSpec style guide.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-03.
-
The RSpec Book worth reading in 2022?
betterspecs.org is a good resource.
- Learning RSpec
- Best course to learn for 2022?
-
Understanding Rspec Best Practices
Both sites advocate for factories over fixtures (though there is a not clear consensus). With fixtures, test objects are all defined in fixture files with predefined data. Fixtures can be used across tests but modifying an existing fixture can break tests that depend on that fixture. As a codebase grows managing fixtures for all the various states of your object can be difficult. In comparison, factories let you build and configure new objects per test.
-
Free 500+ books and learning resources for every programmer.
Better Specs (RSpec Guidelines with Ruby)
What are some alternatives?
When comparing fast-ruby and RSpec style guide you can also consider the following projects:
Rails style guide - A community-driven Ruby on Rails style guide
Ruby style guide - A community-driven Ruby coding style guide
Best-Ruby - Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
Fundamental Ruby - :books: Fundamental programming with ruby examples and references. It covers threads, SOLID principles, design patterns, data structures, algorithms. Books for reading. Repo for website https://github.com/khusnetdinov/betterdocs
contracts.ruby - Contracts for Ruby.
are-we-fast-yet - Are We Fast Yet? Comparing Language Implementations with Objects, Closures, and Arrays
Functional Ruby
fast-ruby vs Rails style guide
RSpec style guide vs Rails style guide
fast-ruby vs Ruby style guide
RSpec style guide vs Ruby style guide
fast-ruby vs Best-Ruby
RSpec style guide vs Fundamental Ruby
fast-ruby vs Fundamental Ruby
RSpec style guide vs Best-Ruby
fast-ruby vs contracts.ruby
RSpec style guide vs contracts.ruby
fast-ruby vs are-we-fast-yet
RSpec style guide vs Functional Ruby