A catty list of programming languages
Jun. 5th, 2004 02:22 amis here.
It contains Dijkstra's famous remark:
Also, I object to the sample of "everyday C code", intended to demonstrate how cryptic the language is:
Everyday, perhaps, but that's not what good C code looks like; that's what you get from a smartass kid who thinks that cramming everything into one statement in the source code makes it go faster.
update: It links to this list which has many, many more languages, but doesn't say much about them. I'm happy that it mentions RPL.
It contains Dijkstra's famous remark:
It is practically impossible to teach good programming style to students that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.Didn't hurt me none. Hee-yuk, hee-yuk.
Also, I object to the sample of "everyday C code", intended to demonstrate how cryptic the language is:
for( i=0; (c=getchar())!=EOF && c != '\n'; i++ )
s[i] = c!='\t' ? c : ' ';
Everyday, perhaps, but that's not what good C code looks like; that's what you get from a smartass kid who thinks that cramming everything into one statement in the source code makes it go faster.
update: It links to this list which has many, many more languages, but doesn't say much about them. I'm happy that it mentions RPL.
no subject
Date: 2004-06-05 12:06 am (UTC)I like the link though, it's missing many languages, but it's neat to see examples of actual code from some "historic" or different dicipline languages that you may never encounter in the normal day-to-day.
no subject
Date: 2004-06-05 09:56 am (UTC)It's a fairly simple case, but if the whole file is like that, and dozens of programmers have to look at it over a decade or two, it adds up. You don't want to have to waste any cogitation on analyzing something simple while you're chasing down a complicated problem.
no subject
Date: 2004-06-05 10:03 am (UTC)I suspect that many compilers would even flag this with a warning or two under typical settings.
no subject
Date: 2004-06-05 10:09 am (UTC)no subject
Date: 2004-06-05 10:41 am (UTC)Yeah, that code example sucks. Actually, I'll admit that the mere possibility of writing that is a genuine problem with C.
no subject
Date: 2004-06-05 12:33 am (UTC)no subject
Date: 2004-06-05 10:17 am (UTC)no subject
Date: 2004-06-05 11:10 am (UTC)no subject
Date: 2004-06-05 03:50 pm (UTC)I always tell people to read Steve Maguire's books, "Writing Solid Code" and "Debugging the Development Process"; they're full of true wisdom on this subject and related ones. Don't be put off by their Beast of Redmond provenance; Maguire's baby is Excel, which is one of the least sucky programs Microsoft ever produced.
no subject
Date: 2004-06-05 05:49 pm (UTC)"Writing Solid Code" is perhaps the best book I've ever read about programming. Clear, well-reasoned, and generally applicable. It does beat some topics to death at the expense of others (objects and source control being two topics they could have done more with), but even so, it's great.
no subject
Date: 2004-06-05 06:11 pm (UTC)no subject
Date: 2004-06-05 12:05 pm (UTC)I notice Python's absence. And Ruby's.
no subject
Date: 2004-06-06 04:29 am (UTC)no subject
Date: 2004-06-06 07:59 pm (UTC)I wouldn't mention Brainfuck. It's close enough to a pure Turing machine that some computer scientist weenies might actually LIKE it.
no subject
Date: 2004-06-06 06:21 pm (UTC)Sigh. Guilty as charged. I couldn't even learn to code on a MUD, thanks to BASIC.