Account name:
Password
(OpenID?)
(Forgot it?)
Remember Me
You're viewing
nancylebov
's journal
Create a Dreamwidth Account
Learn More
Interest
Region
Site and Account
FAQ
Email
Reload page in style:
site
light
Input Junkie
Syntax check
Syntax check
Mar
.
7th
,
2005
02:15 pm
nancylebov
10 HEADDESK
20 GOTO 10
30 END
This is a potential button slogan, but is the syntax right? Should it be GO TO?
Threaded
|
Top-Level Comments Only
no subject
Date:
2005-03-07 07:22 pm (UTC)
From:
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?
no subject
Date:
2005-03-07 07:29 pm (UTC)
From:
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.
no subject
Date:
2005-03-07 07:32 pm (UTC)
From:
nancylebov.livejournal.com
The last line makes it look more like a program. It also, imho, adds a sense of despair.
no subject
Date:
2005-03-07 07:51 pm (UTC)
From:
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 ;)
no subject
Date:
2005-03-07 08:04 pm (UTC)
From:
dcseain.livejournal.com
t also, imho, adds a sense of despair.
I concur.
no subject
Date:
2005-03-07 08:11 pm (UTC)
From:
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;
no subject
Date:
2005-03-07 08:15 pm (UTC)
From:
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.
no subject
Date:
2005-03-07 10:40 pm (UTC)
From:
bibliotrope.livejournal.com
I miss Basic.
OTOH, I love userpics.
no subject
Date:
2005-03-08 01:27 pm (UTC)
From:
dominicflandry.livejournal.com
Looks right to me, (and finally I get to use my "work"icon).
no subject
Date:
2005-03-08 07:42 pm (UTC)
From:
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
no subject
Date:
2005-03-08 07:42 pm (UTC)
From:
mneme
It's fine, though most versons of BASIC have labels, and the numbers as optional instead of manditory.
no subject
Date:
2005-03-09 01:03 am (UTC)
From:
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?
no subject
Date:
2005-03-09 03:15 pm (UTC)
From:
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?
no subject
Date:
2005-03-09 06:13 pm (UTC)
From:
jducoeur
Dear lord -- that userpic is brilliant...
14 comments
Reply
Threaded
|
Top-Level Comments Only
Profile
nancylebov
nancybuttons.com
Recent Entries
Archive
Reading
Tags
Memories
Profile
December
2025
S
M
T
W
T
F
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Most Popular Tags
archaeology
-
4 uses
beauty
-
6 uses
biology
-
6 uses
book review
-
6 uses
buttons
-
20 uses
cats
-
15 uses
computers
-
5 uses
cooking
-
6 uses
cool links
-
32 uses
cthulhu
-
5 uses
dogs
-
7 uses
economics
-
6 uses
fiction
-
7 uses
good comments
-
44 uses
harry potter
-
6 uses
health
-
6 uses
heinlein
-
5 uses
humor
-
16 uses
intelligence
-
5 uses
knees
-
4 uses
language
-
7 uses
life with people
-
10 uses
limbaugh
-
6 uses
linguistics
-
6 uses
livejournal
-
8 uses
me
-
4 uses
movie review
-
5 uses
music
-
9 uses
nazis
-
6 uses
new slogans
-
16 uses
nitpicking the world
-
6 uses
polarizing political talk
-
6 uses
politics
-
82 uses
prediction
-
10 uses
pursuit of pankera
-
5 uses
quotes
-
4 uses
reading_moonwise
-
7 uses
recipe
-
16 uses
religion
-
8 uses
ruud
-
6 uses
science
-
14 uses
science fiction
-
10 uses
self-hatred
-
7 uses
silly
-
8 uses
supplements
-
7 uses
t'ai chi
-
8 uses
tolkien
-
4 uses
torture
-
13 uses
weight_loss_survey
-
4 uses
writing
-
7 uses
Page Summary
batwrangler.livejournal.com
-
(no subject)
chatworthy.livejournal.com
-
(no subject)
nancylebov.livejournal.com
-
(no subject)
laughing-fox.livejournal.com
-
(no subject)
dcseain.livejournal.com
-
(no subject)
autopope.livejournal.com
-
(no subject)
cellio
-
(no subject)
bibliotrope.livejournal.com
-
(no subject)
dominicflandry.livejournal.com
-
(no subject)
mneme
-
(no subject)
mneme
-
(no subject)
dcseain.livejournal.com
-
(no subject)
nancylebov.livejournal.com
-
(no subject)
jducoeur
-
(no subject)
Style Credit
Base style:
Refried Tablet
by
zvi
and
Aaron B. Russell
Theme:
Teals
by
krja
Expand Cut Tags
No cut tags
Page generated Feb. 24th, 2026 01:08 pm
Powered by
Dreamwidth Studios
no subject
Date: 2005-03-07 07:22 pm (UTC)no subject
Date: 2005-03-07 07:29 pm (UTC)The GOTO 10 is spelled correctly for most BASICs.
Line 30 will never get executed, but it's kinda cute.
no subject
Date: 2005-03-07 07:32 pm (UTC)no subject
Date: 2005-03-07 07:51 pm (UTC)no subject
Date: 2005-03-07 08:04 pm (UTC)I concur.
no subject
Date: 2005-03-07 08:11 pm (UTC)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;
no subject
Date: 2005-03-07 08:15 pm (UTC)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.
no subject
Date: 2005-03-07 10:40 pm (UTC)OTOH, I love userpics.
no subject
Date: 2005-03-08 01:27 pm (UTC)no subject
Date: 2005-03-08 07:42 pm (UTC)Try:
PROBLEM: {
$head->bang_onto($desk);
0 or redo PROBLEM
}
Or more simply
HEADDESK:
goto HEADESK;
exit 0
no subject
Date: 2005-03-08 07:42 pm (UTC)no subject
Date: 2005-03-09 01:03 am (UTC)Yeah, today they're optional, but without linenumbers, it's not really BASIC, now is it?
no subject
Date: 2005-03-09 03:15 pm (UTC)no subject
Date: 2005-03-09 06:13 pm (UTC)