RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

The Totally Unofficial Ruby coding style guide

I just launched a totally unofficial Ruby coding style guide, that might be of interest to some of you. Have a look at the initial revision and share your opinion.

Comments

Good summary which I mostly agree with.

As a bit of a stickler for idiomatic style, this is a pretty good attempt! But despite being the same in TRPL and the Pickaxe, that “case” identation style really grinds my gears. It’s like not indenting a block or the contents of an if/end block. “case” and “end” are a block of sorts so the contents, IMHO, should be indented appropriately. I’d love to know what the rationale is for the de facto style.

The when/else statements inside case/end should be indented. I agree with Peter.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in