Mailinglist Archive: yast-devel (63 mails)

< Previous Next >
Re: [yast-devel] Yast and Rubocop? 80 columns

Hello,

On Dec 1 10:01 Martin Vidner wrote (excerpt):

https://github.com/yast/yast-yast2/commit/b3ff10aebd39aa0a446e6d7004fbe5821ec05f91

As you can see, you cannot see the text because the GitHub
formatting cuts it off.

Webdesign with fixed width results inappropriate usability.
When the design cuts off content the desing is plain broken.
In this case the design does not actually cut off content
because there is a horizontal scroll bar at the bottom
but its usability is bad.

FYI:
For comparison and fun, see
http://motherfuckingwebsite.com/
;-)


If not "80 columns", what rule should we use, if any?

For me
https://github.com/SUSE/style-guides/blob/master/Ruby.md
looks perfectly reasonable:
----------------------------------------------------------------------
For every rule there is a situation when it makes sense to break it.
...
Wrap lines at 80 columns. This is not a hard rule...
(e.g. you are embedding a long URL).
----------------------------------------------------------------------

There cannot be hardcoded tests for "rules" that are not hard rules
because any hardcoded test would be an annoyance when it falsely
complains about situations where it makes sense to break the rules.

Even if a hardcoded test would only complain about lines > 200 chars,
that test would be an annoyance for all fixed strings > 200 chars
like long URLs, long paths, long IDs, and so on.


Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 21284 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
References