Rails style guide
A community-driven Ruby on Rails style guide (by rubocop-hq)
fast-ruby
:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms. (by fastruby)
Our great sponsors
Rails style guide | fast-ruby | |
---|---|---|
4 | 4 | |
6,450 | 5,642 | |
0.3% | 0.2% | |
4.3 | 4.6 | |
2 months ago | 5 months ago | |
Ruby | ||
- | - |
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.
Rails style guide
Posts with mentions or reviews of Rails style guide.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-21.
-
Development guidelines
As you see - there are no reference to any technology or framework. There are a lot of best-practices for almost any framework, so you can choose an appropriate one. For example - if you're a rails developer, then you can check https://github.com/rubocop/ruby-style-guide and https://github.com/rubocop/rails-style-guide but if you're a golang developer - https://github.com/uber-go/guide/blob/master/style.md and https://developers.mattermost.com/contribute/more-info/server/style-guide/
-
Beginner's Guide to RuboCop in Rails
Rails
-
Learning Ruby on Rails as an experienced programmer
Couple of examples: ruby style guide, rails style guide
-
Why You Should Avoid Models in Rails Migrations
A workaround proposed in Rails styleguide seems a good solution : https://rails.rubystyle.guide/#define-model-class-migrations
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.
https://github.com/JuanitoFatas/fast-ruby
What are some alternatives?
When comparing Rails style guide and fast-ruby you can also consider the following projects:
Ruby style guide - A community-driven Ruby coding style guide
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
RSpec style guide - RSpec Best Practices
Best-Ruby - Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
contracts.ruby - Contracts for Ruby.
Functional Ruby
are-we-fast-yet - Are We Fast Yet? Comparing Language Implementations with Objects, Closures, and Arrays
Rails style guide vs Ruby style guide
fast-ruby vs Ruby style guide
Rails style guide vs Fundamental Ruby
fast-ruby vs RSpec style guide
Rails style guide vs RSpec style guide
fast-ruby vs Best-Ruby
Rails style guide vs Best-Ruby
fast-ruby vs Fundamental Ruby
Rails style guide vs contracts.ruby
fast-ruby vs contracts.ruby
Rails style guide vs Functional Ruby
fast-ruby vs are-we-fast-yet