« Chalcid Wasp | Main | Tortoise Bug Nymph »
Friday
Aug282009

Design Flaws in Star Trek

Writer John Scalzi has a couple of funny articles up at amctv.com on design flaws in Star Wars and Star Trek movies.

In the Star Trek article, am I the only person to notice the flaw in the BASIC program he gives?

The Alien Probe of Star Trek IV
The programming of this probe is even more simple
than that of V'Ger, and could be written in four lines in
the BASIC programming language:

  10. GOTO Earth
  20. INPUT "I can has humpback whalez?" A$
  30. IF A$="no" THEN GOTO 40
  40. DESTROY EVERYONE AND EVERYTHING

I'm pretty sure this is not optimal design.

Indeed, it is not.  But probably not in the way Scalzi intended: if you look carefully at line 30 you will see that the program will always get to line 40, no matter what answer is given to the question.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.