On 04/26/12, Maros Zatko wrote:
Hi everybody,
I'd love to ask you if we have some coding style guidelines. If we don't I'd like to propose creating such thing and start to enforce it in a review process.
Actually it's not bad idea to have some coding/style guidelines in place. If all people adopt them and use them, then the resulting project codebase will look more consistent.
I want to propose this: https://github.com/bbatsov/ruby-style-guide for the general discussion :-)
-- Mich
some of the guidelines ideas are:
- 2 spaces over tabs
- fuzzy (i.e. non-strict limit) for 80 chars per line (and yes - 120 chars
are way too much)
- using instance variables only when you *really* need it
- 'do...end' and curly braces conventions (?)
- CamelCaseOnlyForClassNames
any ideas?
- maros