Ruby Style Guide

Christian Neukirchen wrote a Ruby coding style guide. I liked a lot of his points, but I had to make a few corrections for my personal tastes. My modified verion of the style guide has this to say in the introduction:

Benjamin Kudria’s Ruby Style Guide (with apologies to Christian Neukirchen)

You may not like all rules presented here, but they work very well for me and have helped producing high quality code.

However, this is a guide, not a rule book. Absolutism makes no sense. Every rule is not only meant to be broken, it needs to be, as often and as vigorously as possible.

Some of these rules contradict others. That’s intentional. Reality is so far beyond our comprehension it’s not even funny.

These rules will change in the future.

Everyone is free to code however they want, write and follow their own style guides, but when contributing to my code try to follow these rules.