[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
80 char line limit, and we should stop the convention
From: |
Xah Lee |
Subject: |
80 char line limit, and we should stop the convention |
Date: |
Wed, 28 Mar 2012 19:33:45 -0000 |
User-agent: |
G2/1.0 |
the 80-char limit in unixes, and the convention to truncate/format
file no more than 80 chars per line in unix email or source code (such
as emacs's fill-paragraph), are from punch cards.
we should stop the habit of formatting lines to 80 chars, in source
code. e.g. stop using any form of fill-paragraph.
also, am going to stop formatting my elisp function's doc string to 80
chars.
instead, format them by semantic unit. e.g. by paragraph.
Reference and further readings:
• 1st video at http://yuiblog.com/crockford/
• http://en.wikipedia.org/wiki/Punched_card
• 〈Unix, RFC, Line Truncation〉
http://xahlee.org/UnixResource_dir/writ/truncate_line.html
• 〈Programing: the Harm of Hard-wrapping Lines〉
http://xahlee.org/UnixResource_dir/writ/hard-wrap.html
Xah
- 80 char line limit, and we should stop the convention,
Xah Lee <=