Saturday, September 14, 2013

The Ruby Style Guide


Ruby is fun to write.  You can write in many different forms of codes for just doing one thing. There is no rule to follow unless you find one.  The one below is a good one to follow.  I am pretty sure your life will be easier if you go for it.


Beside the guide, there is a style checker for checking codes.   It's quite easy to use, but quite naggy.

Do you use Sublime text 2?  There is a plugin for it.  Have fun.

The Ruby Style Guide


This Ruby style guide recommends best practices so that real-world Ruby programmers can write code that can be maintained by other real-world Ruby programmers. A style guide that reflects real-world usage gets used, and a style guide that holds to an ideal that has been rejected by the people it is supposed to help risks not getting used at all – no matter how good it is.RuboCop

https://github.com/bbatsov/ruby-style-guide

RuboCop


RuboCop is a Ruby code style checker based on the Ruby Style Guide.
https://github.com/bbatsov/rubocop

Sublime RuboCop

A Sublime Text plugin that runs a RuboCop check on the current file or the current project. By default it uses RVM to run RuboCop, but you can switch to rbenv or provide your own command line in the settings.
https://github.com/pderichs/sublime_rubocop

No comments:

Post a Comment