Sie schießen sich in den Fuß: Programmiersprachen im Vergleich

C

Sie schießen sich in den Fuß.

C++

Sie erstellen aus Versehen ein Dutzend Instanzen von sich selbst und schießen allen in den Fuß. Erste Hilfe ist nicht möglich, da Sie nicht wissen, welche davon bitweise Kopien sind und welche auf andere zeigen und sagen “Ich bin’s, hier drüben”.

FORTRAN

Sie schießen sich iterativ in jeden Fußzeh, bis Sie keine mehr haben, dann lesen Sie den nächstan Fuß ein und wiederholen das Ganze. Wenn Ihnen die Kugeln ausgehen, machen Sie trotzdem weiter, da Sie ja sowieso keine Möglichkeit für Exception-Handling haben.

Modula-2

Nachdem Sie festgestellt haben, daß Sie mit dieser Sprache überhaupt nix bewerkstelligen können, schießen Sie sich in den Kopf.

COCOL

NEHME einen COLT 45 HANDFEUERWAFFE, RICHTE Pistole auf BEIN.FUSS,
DANN lege ARM.HAND.FINGER an HANDFEUERWAFFE.ABZUG und DRÜCKE,
DANN stecke HANDFEUERWAFFE in HALFTER. PRÜFE, ob Schnürsenkel neu gebunden werden muss.

LISP

Sie schießen sich in den Halter, in dem die Pistole steckt, mit der Sie sich in den Halter schießen, in dem die Pistole steckt, mit der Sie sich in den Halter schießen in dem die…

BASIC

Sie schießen sich mit einer Wasserpistole in den Fuß. Auf großen Systemen machen Sie solange weiter, bis der ganze Unterkörper durchnässt ist.

FORTH

Fuß den in selbst sich schießen Sie.

APL

Sie schießen sich in den Fuß und verbringen den ganzen Tag damit rauszukriegen, wie sie das mit weniger Buchstaben schaffen können.

PASCAL

Der Compiler lässt Sie sich nicht in den Fuß schießen.

SNOBOL

Wenn es funktioniert, schießen Sie sich in den linken Fuß, falls nicht in den rechten.

Concurrent Euclid

Sie schießen sich selbst in jemand anderes Fuß.

HyperTalk

Stecken Sie die erste Kugel der Pistole in Ihr linkes Bein. Beantworten Sie das Ergebnis.

Motif

Sie verbringen einige Tage damit, eine UIL Beschreibung Ihres Fußes, des Laufs, der Kugel und den Einlegearbeiten der Griffe der Pistole zu schreiben. Wenn Sie endlich dazu kommen, den Abzug zu ziehen, klemmt die Waffe.

UNIX

% ls foot.c foot.h foot.o toe.c toe.o
% rm * .o rm: .o: No such file or directory
% ls
%

DOS

Sie können von hier aus keinen der beiden Füße erreichen.

OS/2

Zeigen Sie auf den Körper und klicken Sie, zeigen Sie auf das Bein und klicken Sie, zeigen Sie auf den Fuß und die Pistole macht klick.

Xbase

Sich selbst zu erschießen ist kein Problem. Wenn Sie sich in den Fuß schießen wollen, müssen Sie Clipper nehmen.

Paradox

Nicht nur Sie können sich selbst in den Fuß schießen, sondern Ihre Anwender können das auch.

Revelation

Sie werden sich in den Fuß schießen, sobald Sie rausgekriegt haben, für was bloß diese Kugeln da sind.

Visual Basic

Sie treffen zwar Ihren Fuß nicht, haben aber soviel Spaß dabei, daß es Ihnen nichts ausmacht.

Prolog

Sie sagen dem Programm, dass Sie in den Fuß geschossen werden wollen. Das Programm stellt fest, wie das geht, aber die Syntax verbietet es zu erklären.

370JCL

Sie schicken Ihren Fuß zur MIS Abteilung, mit einem 4000 Seiten Dokument, dass erklärt, wie Sie hinein geschossen haben möchten. Nach drei Jahren kommt er frittiert zurück.

HTML

Sie hauen sich auf den Arm, da die Begriffe Fuß und schießen zu viel Schreibarbeit benötigen.

SQL

insert into body (foot) values ('bullet')

Which language is right for you?

The folloowing is originaly from “The Real Times”, a newsletter of the Greater Boston Chapter of ACM. “Which language is right for you?” by Simon Walmsley and Steve Suttles.

In order to help you make a competent, uncomplicated choice concerning thecompetition between complex, incompatible computer compilers, we havecomposed this complete, compact, composite compendium comprising comparisonsto compensate for the complaints and complements of their compromises. We hope you will find it comprehensible rather than compost.

6502

You shoot yourself in the foot.

68000

You can’t decide which gun and which bullet to use, so you hang yourself.

8080

You foot yourself in the shoot.

Z80

Ada

The Department of Defense shoots you in the foot after offering you a blindfold and a last cigarette.

Assembler

LDA BULLET
STA FOOT

APL

GN (* Upside down triangle *) FT ^ BLT

You shoot yourself in the foot, then spend all day figuring out.

BASIC (interpreted)

You shoot yourself in the foot with a water pistol until your leg is waterlogged and falls off.

BASIC (compiled)

You shoot yourself in the foot with a BB using a Scud missle launcher.

C

You shoot yourself in the foot and then no one else can figure out what you did.

*foot = bullet

C++

You create a dozen instances of yourself and shoot them all in the foot. Not knowing which feet are virtual, medical care is impossible.

COBOL

USE HANDGUN.COLT(45), AIM AT LEG.FOOT, THEN WITH ARM.HAND.FINGER ON HANDGUN.-COLT(TRIGGER) PERFORM SQUEEZE, RETURN HANDGUN.COLT TO HIP.HOLSTER

csh

After searching the manual until your foot falls asleep, you shoot the computer and switch to C.

dBase

You buy a gun. Bullets are only available from another company and are promised to work so you buy them. Then you find out that the next version of the gun is the one that is scheduled to actually shoot bullets.

FORTH

Foot Bullet shootInto.

FORTRAN

EQUIVALENCE (BULLET, FOOT)

You shoot yourself in each toe, iteratively, until you run out of toes. Then you read in the next foot and repeat. You shoot the eleventh bullet anyway, since no exception processing was anticipated.

Modula-2

You perform a shooting on what might currently be a foot with what might currently be a bullet shot by what might currently be a gun.

After realizing that you can’t actually accomplish anything in this language, you shoot yourself in the head.

LISP

You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which…

occam

You shoot both your feet with several guns a once.

ORCA/C

Byteworks keeps promising to supply good ammunition RSN!

Pascal

Same as Modula-2, except the bullet is not of the right type for the gun and your hand is blown off.

You try to shoot yourself in the foot, but it tells you that your foot is the wrong type and out of range to boot!

PL/1

After comsuming all system resources including bullets, the data processing department doubles its size, acquires two new mainframes and drops the original on your foot.

Prolog (interpreted)

Your program tries to shoot you in the foot, but you die of old age before the bullet leaves the gun.

Prolog (compiled)

The facts are against you. You try to stop the gun from shooting you in the foot, but it replies “No.”

Prolog

You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn’t allow it to explain.

370 JCL

You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried.

Smalltalk, Actor

After playing with the graphics for three weeks the programming manager shoots you in the head.

SNOBOL

Grab your foot with your hand and rewrite your hand to be a bullet.

If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot.

TECO

@fs/bullet/foot/

Windows

You click on Bullet, and the mouse knocks the manual off the desktop. The manual lands corner-first on your foot.

Concurrent Euclid

You shoot yourself in somebody else’s foot.

HyperTalk

Put the first bullet of the gun into foot left of leg of you. Answer the result.

Motif

You spend days writing a UIL description of your foot, the trajectory, the bullet, and the intricate scrollwork on the ivory handles of the gun. When you finally get around to pulling the trigger, the gun jams.

Unix

% ls foot.c foot.h foot.o toe.c toe.o
% rm * .o rm: .o: No such file or directory
% ls
%

XBase

Shooting yourself is no problem. If you want to shoot yourself in the foot, you’ll have to use Clipper.

Paradox

Not only can you shoot yourself in the foot, your users can too.

Revelation

You’ll be able to shoot yourself in the foot just as soon as you figure out what all of these bullets are for.

Visual Basic

You’ll shoot yourself in the foot, but you’ll you have so much fun doing it that you won’t care.

SQL

insert into body (foot) values ('bullet')

Dieser Beitrag hat 2 Kommentare

  1. Anonymous

    Bei Unix fehlt das Leerzeichen zwischen dem “*” und dem “.o”.
    Das “in den Fuß schießen” beruht auf diesem Leerzeichen.
    Außerdem braucht es eine neue Zeile vor der Fehlermeldung.

    rm * .o
    rm: .o: No such file or directory

    1. Michael L. Jaegers

      Das ist natürlich richtig. Da ist wohl im Zuge einiger Konvertierungen dieses Beitrags irgendwann einmal die Kugel abhanden gekommen …

Schreibe einen Kommentar

Nutze dieses Kommentarfeld um deine Meinung oder Ergänzung zu diesem Beitrag kundzutun. Verhalte dich bitte respektvoll und höflich! Kommentare werden vor der Veröffentlichung in der Regel moderiert und bei Verstößen gegen geltendes Recht, die guten Sitten, fehlendem Bezug oder missbräuchlicher Verwendung nicht freigegeben oder gelöscht.
Über die Angabe deines Namens, deiner E-Mail Adresse und deiner Webseite freuen wir uns, doch diese Felder sind optional. Deine E-Mail Adresse wird dabei zu keinem Zeitpunkt veröffentlicht.

Um mit dem Betreiber dieser Seite nicht-öffentlich in Kontakt zu treten, nutze die Möglichkeiten im Impressum.