Sujet : Re: Which code style do you prefer the most?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 21. Mar 2025, 10:41:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <8634f6n2k8.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
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.
Source: <https://en.wikipedia.org/wiki/Punched_card>
>
I'll just note that the fact that 80 is an arbitrary number,
based on technologies we no longer use, [...]
The choice of using 80 columns was constrained by what technology
was available at the time, but it's wrong to describe the value
as arbitrary. We know that a choice was made between a much
lower number (between 40 and 50 IIRC) and the higher number 80.
That decision already means the value used was not arbitrary.
Also we don't know what other factors might have gone into the
decision; it's possible that IBM settled on 80 only after
considering what line lengths needed to be supported. We don't
know what would have happened if, for example, it had been
discovered that using rectangular holes would allow up to only
60 columns, perhaps encouraging the introduction of newer
equipment. We also don't know if someone had looked at how
many characters were needed in typical printed material, and
pushed the rectangular hole technology only as far as was needed
to support that. It seems reasonable to expect that IBM would
have considered such issues, even in the 1920s, and not just
ignore them.