Program names and "pollution"
Program names and "pollution"
Posted Apr 7, 2019 23:07 UTC (Sun) by jschrod (subscriber, #1646)In reply to: Program names and "pollution" by mrshiny
Parent article: Program names and "pollution"
And while we're at it:
- Rename creat() to create().
- Clean up that awful abbreviation "pwd" to
have something to do with passwords instead of meaning "print working directory", as any newbie would expect.
On a serious note, it's not always as practical to change established namings even if it would be sensible.
Cheers, Joachim
PS: These two changes/gripes were mentioned by Dennis Ritchie at a conference dinner where I had the occasion to be at the same table. So please don't blame me for bringing them up. :-) :-)
Posted Apr 8, 2019 9:01 UTC (Mon)
by anselm (subscriber, #2796)
[Link] (4 responses)
According to legend, Ken Thompson was once asked what he would do differently if he were to redo Unix from scratch. His answer was “I'd spell ‘create()’ with an ‘e’ at the end.”
OTOH, if your main means of interaction with the computer is a 110-baud teletypewriter, you may be forgiven for wanting to make every character count. In that situation, using “?” as an error message starts making a lot of sense.
Posted Apr 11, 2019 9:14 UTC (Thu)
by mgedmin (subscriber, #34497)
[Link] (3 responses)
Posted Apr 11, 2019 19:42 UTC (Thu)
by jengelh (guest, #33263)
[Link]
There is the "localtime" call in V7 (at least whatever copy I could grab off github), which is way above 6 characters.
Posted Apr 11, 2019 19:51 UTC (Thu)
by jengelh (guest, #33263)
[Link] (1 responses)
And as for V1, there is the "putchar" function.
Posted Apr 12, 2019 1:08 UTC (Fri)
by neilbrown (subscriber, #359)
[Link]
Was there?? I thought "putchar" was a macro for fputc(c, stdout), but I haven't checked V1. Rules for macro names would be different from those for linker symbols.
Program names and "pollution"
These two changes/gripes were mentioned by Dennis Ritchie
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
