Sujet : Re: Which code style do you prefer the most?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 22. Mar 2025, 14:49:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86y0wxkwfb.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
scott@slp53.sl.home (Scott Lurndal) writes:
scott@slp53.sl.home (Scott Lurndal) writes:
>
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>
IBM developed 80-column cards, with the same overall size, in
the late 1920s. Apparently 80 just happened to be the number
of rectangular holes that could reasonably be accommodated
[...]
>
We don't know that. The same size might have accommodated 85
columns, but was revised down to 80 for other reasons. Or the
same size might have accommodated only 77 columns, but it was
discovered that 80 columns could work if a different card
material was used. The form factor was one constraint, but
not the only constraint, and not the only consideration.
>
I have a hardcover book about punched cards somewhere
in storage - came from the Burroughs library when they
closed it. I'll try to dig it out if I get a chance.
>
Casey, Robert S. and Perry, James W. Editors
Punched Cards - Their application to science and industry
>
https://archive.org/stream/
PunchedCardsTheirApplicationsToScienceAndIndustry/
Punched_cards-their_applications_to_science_and_industry_djvu.txt
A remarkable document. Thank you for the link.
I perused it only briefly before deciding that the 600+ pages
(or is it 900+ pages?) had a lot more material than what I
was willing to tackle.
Thinking it might be interesting, I gathered some information and
statistics from the contents, in particular having to do with
line widths. After eliminating lines that looked like overly
long gibberish (hundreds or thousands of characters), lines that
looked like they were meant to be set in a smaller font (mostly
footnotes and figure captions), and discarding lines shorter than
66 characters (because they are probably short lines at the end
of a paragraph), I came up with these results.
17308 lines, ranging from 66 to 91 characters
average: 73.95 characters
std dev: 3.48 characters
length percent prcntile
------ ------- --------
66 1.01 1.01
67 1.63 2.64
68 2.62 5.26
69 4.06 9.32
70 6.07 15.39
71 8.35 23.75
72 10.62 34.37
73 11.97 46.33
74 11.88 58.21
75 11.36 69.57
76 9.58 79.15
77 6.75 85.90
78 4.88 90.78
79 3.09 93.87
80 2.19 96.06
81 1.39 97.45
82 0.91 98.35
83 0.69 99.05
84 0.47 99.52
85 0.21 99.73
86 0.13 99.86
87 0.07 99.93
88 0.06 99.99
91 0.01 100.00
Notes:
There were only two lines of length 91. I couldn't tell if they
were distinct in some way from the other lines (other than being
longer).
In some cases the line widths are probably too high, because of
html-isms like < and so forth.
I expect the book uses proportionally spaced fonts rather than
fixed-width fonts, but the contents are part of a <pre></pre>
block so that's just a guess.