[katello-devel] Updated Ruby style guide

Lukas Zapletal lzap at redhat.com
Mon Oct 15 07:22:13 UTC 2012


On Fri, Oct 12, 2012 at 02:15:43PM -0400, David Davis wrote:
> I'm also thinking of reiterating the 80 characters or less per line rule in our style guide. It's currently in the Github guide and I think it's great rule given that it's in our Python guide as well and Github cuts off commits after about 80 characters (you have to scroll over).

Why you think it's great? I think it's evil, because nobody no longer
uses fixed eighty columns anymore and it's quite limiting. I mean, xterm
opens up with 80, but everyone can resize it if needed.

There are many theoretical reasons why to wrap at 80 (like if a line is
that long you should consider refactoring it blah blah). Crap. Give me
practical reasons.

IMHO longer lines are sometimes better to read. And I personally very
often need a line between 80 and let's say 100 which is very readable,
but when wrapped it's awful.

I vote for not giving explicit limit and let it be: use reasonable line
lengths.

-- 
Later,

 Lukas "lzap" Zapletal
 #katello #systemengine




More information about the katello-devel mailing list