Unintended Bugs In Demonstration Code For Intential Software

from the not-a-great-start dept

Adam Barr writes "The Seattle Post-Intelligencer yesterday had a story about Charles Simonyi leaving Microsoft, and today had a follow-up about his plans for his new company. The funny part is that the second article, trying to demonstrate how a "Hello, world!" program would be written to be bug-free, has a sample of the "old" way, a C program, which has an unintended bug in it -- it loops forever (those "{lcub}" and "{rcub}" in the online version of the article appeared as "{" and "}" in the printed one). Hmmm, I guess if you can't get "Hello, world!" correct in C, maybe it is time for something new."

2 Comments | Leave a Comment..


If you liked this post, you may also be interested in...
 

Reader Comments (rss)

(Flattened / Threaded)

  1.  

    The Great American Programming Language

    identicon
    Anonymous Coward, Sep 18th, 2002 @ 10:30pm

    Good to see that even seasoned billionaires aren't immune from the desire to implement DWIM for the rest of us, and remove the need for all those pesky programmers, SEI level-5, CASE, IDEs, James Martin, the 5th generation project, functional languages, provably correct programs, and all that nonsense.

    "When someone says 'I want a programming language in which I need only say what I wish done,' give him a lollipop."
        -- CMU jokes.txt, circa 1984

    reply to this | link to this | view in thread ]

  2.  

    just noticed the intentional

    identicon
    Adam Barr, Sep 19th, 2002 @ 12:08pm

    The intentional code interpreter is supposed to pick out the comment saying that the code is going to print "Hello, world!". Unfortunately the comment is delimited wrong, */ to /* instead of the other way around. So both the intentional code example and the C example have bugs. But I guess the whiz-bang intentional code interpreter would figure that out...it's a two step process, first figure out that the programmer *intended* to put a comment, then figure out from the comment what the code *intended* to do.

    Or you could copy "Hello, world!" out of K&R, with no comments.

    - adam

    reply to this | link to this | view in thread ]


Add Your Comment

Have a Techdirt Account? Sign in now. Want one? Register here
Get Techdirt’s Daily Email
Save me a cookie
  • Note: A CRLF will be replaced by a break tag (<br>), all other allowable HTML will remain intact
  • Allowed HTML Tags: <b> <i> <a> <em> <br> <strong> <blockquote> <hr> <tt>


A word from our Sponsors...
Follow Techdirt
Flattr rss rss
From the Techdirt Archive...
A word from our Sponsors...

Close

Email This