airbnb / ruby

Ruby Style Guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shorten example code

venantius opened this issue · comments

A lot of our sample code blocks are longer than they need to be to get the point across. I think we could do with cleaning these up a bit. The 100-char line limit addressed in #77 is but one example of this.

Discuss.

I agree.

Another thing I would like to clean up is move the bad examples above the good examples and make it consistent throughout.

Omg @tommydangerous ++++++ agree so hard.

Luckily, I only found 2 violations: #84

+1, examples should be long enough to clearly illustrate the point (and ideally should encompass commonly used patterns) but no longer.

I'm closing this as the examples are shorter than 100 characters now.