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."
Hide this

Thank you for reading this Techdirt post. With so many things competing for everyone’s attention these days, we really appreciate you giving us your time. We work hard every day to put quality content out there for our community.

Techdirt is one of the few remaining truly independent media outlets. We do not have a giant corporation behind us, and we rely heavily on our community to support us, in an age when advertisers are increasingly uninterested in sponsoring small, independent sites — especially a site like ours that is unwilling to pull punches in its reporting and analysis.

While other websites have resorted to paywalls, registration requirements, and increasingly annoying/intrusive advertising, we have always kept Techdirt open and available to anyone. But in order to continue doing so, we need your support. We offer a variety of ways for our readers to support us, from direct donations to special subscriptions and cool merchandise — and every little bit helps. Thank you.

–The Techdirt Team


Reader Comments

Subscribe: RSS

View by: Time | Thread


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

    The Great American Programming Language

    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

    link to this | view in thread ]

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

    just noticed the intentional

    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

    link to this | view in thread ]


Follow Techdirt
Essential Reading
Techdirt Deals
Report this ad  |  Hide Techdirt ads
Techdirt Insider Discord

The latest chatter on the Techdirt Insider Discord channel...

Loading...
Recent Stories

This site, like most other sites on the web, uses cookies. For more information, see our privacy policy. Got it
Close

Email This

This feature is only available to registered users. Register or sign in to use it.