apl logo

A.P. Lawrence

Information and Resources for Unix and Linux Systems
Bloggers and the self-employed
RSS FeedsGet APLawrence.com by RSS





Printer Friendly Version


(OLDER) <- More Stuff -> (NEWER)

Cartoons: Why your computer is unhappy


Posted by Tony Lawrence
Search Keys: cartoons,funny

Cartoons : Why your computer is unhappy

Comments /Cartoons/choice.html

CartoonsChoices : This one reminds me of a classic
Commodore computer gag from many years ago. Jim Butterfield,
THE authority on 8 bit Commodore hardware, was making
a presentation at a computer show. He wrote the following
program in CBM (Microsoft) BASIC on a C-64: 100 CBM=1
200 IF CBM THEN PRINT "GOOD CHOICE!" 300 IF TANDY THEN
PRINT "WE'RE BETTER!" Both CBM and TANDY seemed to be
perfectly logical names for floating point variables,
even though Commodore BASIC only recognized the first
and second characters of the variable names as significant.
Anyhow, Jim ran the program and it executed lines 100
and 200 okay but stopped with a syntax error on line
300 due to the seemingly okay expression IF TANDY. Tandy,
as I'm sure most readers would recall, were selling
their TRS-80's in direct competition with Commodore
and there was a fierce rivalry. Well, the audience,
most of whom were non-programmers, cracked up over the
error, thinking that the C-64 had it in for Tandy. What
they didn't realize was that TANDY actually contained
two BASIC keywords: TAN (extract the tangent of an angle
in radians) and AND (logical and). The interpreter,
reading from left to right, tokenized TAN, which requires
a parenthetical argument (the angle). After tokenizing
TAN, all that was left was DY and the resulting structure
made no sense. Ergo the error!
BigDumbDinosaur


Add your comments

Publish your articles, comments, book reviews or opinions here!

/Cartoons/choice.html copyright August 2004 Tony Lawrence All Rights Reserved

Views for this page
Today  This Week  This Month  This Year   Overall
219671,2917,139
Paid Advertisers

Cingular cell phones  
Advanced Cisco Networking and Security by Vinci Consulting  -  Data Recovery Software  -  

Related Articles

Have you tried Searching this site?

Please read this disclaimer

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.