nancylebov: blue moon (Default)
[personal profile] nancylebov
10 HEADDESK
20 GOTO 10
30 END


This is a potential button slogan, but is the syntax right? Should it be GO TO?

Date: 2005-03-07 07:22 pm (UTC)
ext_12542: My default bat icon (Default)
From: [identity profile] batwrangler.livejournal.com
IANA computer programmer, but since that's a go to loop that can't ever reach 30, do you need to include the end command line?

Date: 2005-03-07 07:29 pm (UTC)
From: [identity profile] chatworthy.livejournal.com
HEADDESK? As in "Bash your head on the desk?"

The GOTO 10 is spelled correctly for most BASICs.
Line 30 will never get executed, but it's kinda cute.

Date: 2005-03-07 07:32 pm (UTC)
From: [identity profile] nancylebov.livejournal.com
The last line makes it look more like a program. It also, imho, adds a sense of despair.

Date: 2005-03-07 07:51 pm (UTC)
From: [identity profile] laughing-fox.livejournal.com
y'all are definately not programmers - The fact that the head never stops banging on the desk *IS* the punchline! As anyone trying to debug a script knows all too well ;)

Date: 2005-03-07 08:04 pm (UTC)
From: [identity profile] dcseain.livejournal.com
t also, imho, adds a sense of despair.

I concur.

Date: 2005-03-07 08:11 pm (UTC)
ext_58972: Mad! (Default)
From: [identity profile] autopope.livejournal.com
Hmm.

Howsabout:

#!/bin/perl

use Despair;
use Self qw(in service of fuckwits);

my $angst = Despair->new();
my $head = new Self;

while ($angst->complete()) {
$head->desk();
}

die;

Date: 2005-03-07 08:15 pm (UTC)
cellio: (avatar)
From: [personal profile] cellio
Cute, but harder to fit on a button.

The original is correct for BASIC as best I recall. As others have said, the last line will never be reached and I think that adds to it.

Date: 2005-03-07 10:40 pm (UTC)
From: [identity profile] bibliotrope.livejournal.com
I miss Basic.

OTOH, I love userpics.

Date: 2005-03-08 01:27 pm (UTC)
From: [identity profile] dominicflandry.livejournal.com
Looks right to me, (and finally I get to use my "work"icon).

Date: 2005-03-08 07:42 pm (UTC)
mneme: (Default)
From: [personal profile] mneme
That's too c-like and objecty; not idiomatically perl at all. It could be python or ruby, and wouldn't change much at all.

Try:

PROBLEM: {
$head->bang_onto($desk);
0 or redo PROBLEM
}

Or more simply

HEADDESK:
goto HEADESK;
exit 0

Date: 2005-03-08 07:42 pm (UTC)
mneme: (Default)
From: [personal profile] mneme
It's fine, though most versons of BASIC have labels, and the numbers as optional instead of manditory.

Date: 2005-03-09 01:03 am (UTC)
From: [identity profile] dcseain.livejournal.com
the numbers as optional instead of manditory.

Yeah, today they're optional, but without linenumbers, it's not really BASIC, now is it?

Date: 2005-03-09 03:15 pm (UTC)
From: [identity profile] nancylebov.livejournal.com
That's very poetic. It's a shame if it's not perl-like enough. Can you get "dies" in any other language?

Date: 2005-03-09 06:13 pm (UTC)
jducoeur: (Default)
From: [personal profile] jducoeur
Dear lord -- that userpic is brilliant...

December 2025

S M T W T F S
 123456
78910111213
141516 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 24th, 2026 01:08 pm
Powered by Dreamwidth Studios