Sujet : Re: Command Languages Versus Programming Languages
De : commodorejohn (at) *nospam* gmail.com (John Ames)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 08. Apr 2024, 16:20:37
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240408082037.00002d7c@gmail.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
On Sat, 6 Apr 2024 00:25:45 -0000 (UTC)
Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
It’s like, I don’t know ... you’re trying to save space. Why?
It’s like programming inside an apartment block, instead of having a
bungalow with a yard of your own.
It's a matter of balance. Needlessly crunching things to fit onto a
single line is hard to read, yes - but compulsively indenting and
splitting across lines can get out of hand, too. It seems to me that a
lot of people in this age of "cinematic" aspect ratios and super-sized
displays in personal computing forget that eye-travel isn't free, and
spreading information across maximal space can make it *harder* to keep
track of context.
Better, IMHO, to group operations in a way that logically reflects the
structure of the program, to whatever extent that *A.* is syntactically
feasible in $LANGUAGE, and *B.* doesn't crowd things to the point of
hampering basic readability.
(Of course, whether or not the ternary operator is fundamentally
confusing is an entirely separate question.)