This letter is associated with the following article:
Letters
Thursday, September 14, 2006 12:00 AM

Why Johnny can't code

BASIC used to be on every computer a child touched -- but today there's no easy way for kids to get hooked on programming.

Read other letters about this article

  • Thursday, September 14, 2006 05:16 PM

    Dijkstra and fun language facts

    "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." -- Dijkstra (famous computer scientist who invented some important algorithms. He also wrote an article called "GoTo considered harmful".)

    I taught myself to program in BASIC as a child in the 80s, but I'm not particularly proud of that fact. It took me a long time to unlearn use of goto and gosub when I taught myself Pascal. Eventually I caught on, and found that I could code faster and read my code more easily. Dijkstra was right.

    Note that most high-level languages, including Pascal, C, C++, and Perl, have vestigial labels and goto. Which means that you can emulate BASIC's line numbering if you want to. But please, don't.

    Note also that BASIC is not a particularly low-level language. It's typically interpreted, which actually takes it farther from the machine than, say, C or C++. But BASIC is a crippled high-level language, because of the GOTO thing. Meanwhile, with some compilers, including the free GNU gcc compiler suite, you can actually get the compiler to produce the assembler equivalent of your high-level code, so you can actually see exactly what the machine is up to. That's a lot closer to the machine than BASIC. If you do want a high-level language, Perl is great; it's at least as expressive as BASIC.

    -- Morty Abzug

Most Active Letters Threads

738

The commendably missing element from Obama's speech

There was no pretense that human rights is our goal, or the likely outcome, in escalating the war
688

Obama's exceedingly familiar justifications for escalation

The "new" approach to Afghanistan touted by White House officials seems quite old
343

America's regression

It's almost impossible to find a nation with as many torture advocates as the U.S. has.
329

Yes, it's Obama's war now

An uninspiring speech sells a dubious policy, but progressives who feel betrayed have only themselves to blame
203

The poster boy for progressive self-delusion

Read Hayden's 2008 Obama endorsement to remember the way the left sold our centrist president to itself

View all »

Letters Help

Currently in Salon