[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nmh 1.8RC2, xlbiff, and $HOME
From: |
Ralph Corderoy |
Subject: |
Re: nmh 1.8RC2, xlbiff, and $HOME |
Date: |
Wed, 01 Feb 2023 15:17:22 +0000 |
Hi,
I wrote:
> If 3 is implemented then the user may have thought a different
> pretence would occur. After all, it's an arbitrary choice. Perhaps
> he expects it will carry on just like his shell does.
This has overlap with DWIM, ‘do what I mean’, and Perl's TMTOWTDI,
‘there's more than one way to do it’.
DWIM obviously gets one tied to chair.
http://www.jargon.net/jargonfile/d/DWIM.html
I'm a fan of Perl, programming a lot of it in Perl 4 and early 5 days,
but having introduced it to a large site of engineers who did a bit of
programming, I came to see TMTOWTDI as a problem. I could read all
their code because I knew all the ways. They wrote in dialects by using
different subsets, reducing re-use and understanding.
Many saw TMTOWTDI as a problem. It's one reason why Python has boomed.
Amongst its ‘import this’ Zen are
Explicit is better than implicit.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
An empty HOME isn't explicit in its meaning, it's ambiguous, we
shouldn't guess, and the obvious way of specifying the home directory is
to set HOME to it.
--
Cheers, Ralph.
- Re: nmh 1.8RC2, xlbiff, and $HOME, Ralph Corderoy, 2023/02/01
- Re: nmh 1.8RC2, xlbiff, and $HOME,
Ralph Corderoy <=
- Re: nmh 1.8RC2, xlbiff, and $HOME, Ken Hornstein, 2023/02/01
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: nmh 1.8RC2, xlbiff, and $HOME, Robert Elz, 2023/02/01
- Re: nmh 1.8RC2, xlbiff, and $HOME, Ralph Corderoy, 2023/02/01
- Re: nmh 1.8RC2, xlbiff, and $HOME, David Levine, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, Ralph Corderoy, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, David Levine, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, David Levine, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, Alexander Zangerl, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, David Levine, 2023/02/02
- Re: nmh 1.8RC2, xlbiff, and $HOME, Ralph Corderoy, 2023/02/03