Description
One thing has always bothered me as a Ruby developer - Python developers have a
great programming style reference
(PEP-8) and we never got an official
guide, documenting Ruby coding style and best practices. And I do believe that
style matters. I also believe that a great hacker community, such as Ruby has,
should be quite capable of producing this coveted document.
This guide started its life as our internal company Ruby coding guidelines
(written by yours truly). At some point I decided that the work I was doing
might be interesting to members of the Ruby community in general and that the
world had little need for another internal company guideline. But the world
could certainly benefit from a community-driven and community-sanctioned set of
practices, idioms and style prescriptions for Ruby programming.
Since the inception of the guide I've received a lot of feedback from members of
the exceptional Ruby community around the world. Thanks for all the suggestions
and the support! Together we can make a resource beneficial to each and every
Ruby developer out there.
By the way, if you're into Rails you might want to check out the complementary
Ruby on Rails Style Guide.
Ruby style guide alternatives and similar gems
Based on the "Coding Style Guides" category.
Alternatively, view Ruby style guide alternatives based on common mentions on social networks and blogs.
-
Rails style guide
A community-driven Ruby on Rails style guide -
fast-ruby
:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms. -
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 -
Functional Ruby
A gem for adding functional programming tools to Ruby
Clean code begins in your IDE with SonarLint
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Ruby style guide or a related project?