I always forgot which was which until I actually forced me to use them for a while (and "while" was too long). The only cool thing of the names is that you can get a cryptic sticker "My other car is a cdr" that no-one will understand but will make you jiggle each morning
I feel the same way about many *nix commands. A while ago I thought it was neat to have TLAs[1] for everything, but now I just think it's bad "API" design.
Why is it ls instead of list? chmod instead of permissions? grep instead of search? mv, cp, rm instead of move, copy, remove? Is it really so much work to type a few more characters to justify this?
Programming langue APIs (or rather their libraries) have come a long way since the C days in that regard, but OS wise we're still stuck with these cryptic names.
It's a pity they're not standard in many other languages. I'm not a fan of having to type first/rest or playing around with syntax soup and I really miss caddadadaddaaaaaring around.
sub car { $_[0] } sub cdr { shift; @_ } # every utils module ever
I like them because they don't guide thought: They're abstract names for abstract concepts. They don't impose any interpretation on the ideas, they simply present them for what they are. Having to break down a less-useful conceptual model is even more difficult than building a more-useful one.
[+] [-] RBerenguel|12 years ago|reply
[+] [-] phoboslab|12 years ago|reply
Why is it ls instead of list? chmod instead of permissions? grep instead of search? mv, cp, rm instead of move, copy, remove? Is it really so much work to type a few more characters to justify this?
Programming langue APIs (or rather their libraries) have come a long way since the C days in that regard, but OS wise we're still stuck with these cryptic names.
[1] http://en.wikipedia.org/wiki/Three-letter_acronym
[+] [-] petercooper|12 years ago|reply
[+] [-] csmuk|12 years ago|reply
[+] [-] agumonkey|12 years ago|reply
ps: based on that, head/tail, hd/tl, fst/snd (seen in ml dialects) are also good candidates.
[+] [-] mercurial|12 years ago|reply
[+] [-] mrottenkolber|12 years ago|reply
[+] [-] yati|12 years ago|reply
[+] [-] unknown|12 years ago|reply
[deleted]
[+] [-] outworlder|12 years ago|reply
[+] [-] xmonkee|12 years ago|reply
[+] [-] elrzn|12 years ago|reply
sub car { $_[0] } sub cdr { shift; @_ } # every utils module ever
[+] [-] draegtun|12 years ago|reply
For eg:
then... Some refs: https://metacpan.org/pod/perl5i | https://metacpan.org/pod/autobox::Core[+] [-] csmuk|12 years ago|reply
Perl can be written ugly enough without introducing car and cdr to it!
[+] [-] joeygibson|12 years ago|reply
[+] [-] kang|12 years ago|reply
[+] [-] Syssiphus|12 years ago|reply
[+] [-] derleth|12 years ago|reply