The tyranny of the Hollerith punched card
71–80 of 148 posts
Re: The tyranny of the Hollerith punched card
#72The article has the causality backwards. We don't use 80 characters because that's what the Hollerith card used, the Hollerith card used 80 characters because that's a good ergonomic width. (Or, if you prefer, the Hollerith card succeeded because it was a good ergonomic width.) Coincidentally (or perhaps ironically) the article itself is formatted for ~80 characters per line, not because it's bound by the Hollerith c…
I think this might be a case of two-way causation, though. ~80 characters is a good, readable target, but that's not what we have. For a long time, we've had a militant standardization on So the question remains: why 80? 80-ish, sure, but why such a fixed standard? I don't know enough history to say if that's down to Hollerith cards, or the consequences of auto-formatters, or something else, but there's a more defini…
Because 80 is a very good approximation to 80-ish.
Re: The tyranny of the Hollerith punched card
#73Out of curiosity, where did the 132 column standard (for wide carriage printers) come from (why 132, not 130 or 120)?
Likely because of the VT100: http://vt100.net/docs/tp83/chapter5.html > 132 column × 14 lines (VT100, VT101, VT125) display > Allows you a larger format for detailed or spread sheet work so you can preview reports prior to printing. (Note: The advanced video option, which is standard with the VT102 and VT131, provides 132 column × 24 lines display.)
Re: The tyranny of the Hollerith punched card
#74Earlier quoted context omitted.
Also the author seems to have missed that this char limit is changing. In Python, for example, an official style guide update in 2013 [1] allows for 100 char line length. [1] https://www.python.org/dev/peps/pep-0008/#maximum-line-lengt...
The author wrote this in 2012, so at the time it may have been impossible to predict the 2013 update.
Re: The tyranny of the Hollerith punched card
#75The article has the causality backwards. We don't use 80 characters because that's what the Hollerith card used, the Hollerith card used 80 characters because that's a good ergonomic width. (Or, if you prefer, the Hollerith card succeeded because it was a good ergonomic width.) Coincidentally (or perhaps ironically) the article itself is formatted for ~80 characters per line, not because it's bound by the Hollerith c…
[1] http://www.righto.com/2016/05/inside-card-sorters-1920s-data...
Re: The tyranny of the Hollerith punched card
#76Earlier quoted context omitted.
but "20-odd" (let it be 24) is just 3 * 8, which is something like this. I don't see how this is already screwed up for complexity. class A { A::a() { if (expr) { do1(); } else { do2(); } } }
I don't actually know of any project which uses 6 or 8 characters per indentation level.
And, believe me or not my space-loving friends, tab-indented codebases still exist.
Re: The tyranny of the Hollerith punched card
#77Re: The tyranny of the Hollerith punched card
#78Out of curiosity, where did the 132 column standard (for wide carriage printers) come from (why 132, not 130 or 120)?
Re: The tyranny of the Hollerith punched card
#79Earlier quoted context omitted.
I don't actually know of any project which uses 6 or 8 characters per indentation level.
8 chars is default tab size. So e.g. "git diff" shows you 8-position tabs. Github (and Bitbucket, etc.) diff visualizer also shows it as 8 positions. Any editor should use 8 by default, too. And, believe me or not my space-loving friends, tab-indented codebases still exist.
Re: The tyranny of the Hollerith punched card
#80Earlier quoted context omitted.
Agreed, 80-chars may be an accident of history, but it's an accident which happens to line up quite well with the human eyes ability to track horizontal lines of text. It gets tiring listening to devs rage about the 80-char limit, then go on to produce code that's basically unreadable because it scrolls way off the screen.
> it's an accident which happens to line up quite well with the human eyes ability to track horizontal lines of text. Citation needed.
Hacker News keeps clean discourse by downvoting comments that are not relevant or do not stimulate debate.