Page:
Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
/*

I believe this thread to have

the intrinsic creativity that

UCOF's thread lacked

*/



0 PRINT "THE LYRICS TO THE BEST SONG EVER\n"

1 PRINT "Aleph not bottles of beer on the wall,\n"

2 PRINT "Aleph not bottles of beer,\n"

3 PRINT "You take one down,\n"

4 PRINT "And pass it around,\n"

5 PRINT "Aleph not bottles of beer on the wall.\n"

6 GOTO 1





/*I got an 89.9% on the geek test*/

EDITED_BY: Singed Piper (formerly Mark1) (1113216852)

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


nucleonnewbie
404 posts
Location: Eindhoven, the Netherlands


Posted:
whos aleph?

so you think Im not a newbie? Ok I'll be the King of the newbies. Nucleon the king of all noobs


SniperBRONZE Member
Snoochie-boochie-noochies!
663 posts
Location: United Kingdom


Posted:
function bottles()

.dim n as long

.n = 1000000000

.while n>0 do

..print n & " bottles of beer on the wall, " & n & " bottles of beer," & chr(8)

..print "You take one down, pass it around, " & n & " bottles of beer on the wall." & chr(8) & chr(8)

..n = n - 1

.endwhile

end function
EDITED_BY: Sniper (1113083456)

JauntyJamesSILVER Member
Carpal \'Tunnel
3,533 posts
Location: Hampshire College, MA, USA


Posted:
hug that rocks

-James

"How do you know if you're happy or sad without a mask? Or angry? Or ready for dessert?"


mechBRONZE Member
Carpal \'Tunnel
6,207 posts
Location: "In your ear", United Kingdom


Posted:
geeks!

and thats comming from me!

Step (el-nombrie)


SniperBRONZE Member
Snoochie-boochie-noochies!
663 posts
Location: United Kingdom


Posted:
aww love ya too mechypoops

NateBRONZE Member
Groovy ga watashi no namae desu!
1,530 posts
Location: Oxford, Oxfordshire, England


Posted:
what the funk is going on here

I like Languages.

Educate your self in the Hazards of Fire Breathing STAY SAFE! <img src="/ubbthreads/images/graemlins/hug.gif" alt="" />


HavokistBRONZE Member

2,530 posts
Location: Manchester, United Kingdom


Posted:
it's in a similar ish way to programming, but also not at the same time...

We are the music makers, We are the dreamers of dreams,
Wandering by lone sea-breakers, And sitting by desolate streams;
World-losers and world-forsakers, On whom the pale moon gleams;
We are the movers and shakers of the world for ever, it seems.


SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
Or the PHP verson:

for ($i = 1000000000; $i >= 1; $i--) {
echo "$i bottles of beer on the wall, $i bottles of beer,
You take one down, pass it around, $i bottles of beer on the wall.
";
}

There's too many home fires burning and not enough trees


SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
yeah, it gets bad when you start thinking about making a flash animation for it at midnight on a saturday. I really should get a life or something.

There's too many home fires burning and not enough trees


strooSILVER Member
trusty sidekick to superman
799 posts
Location: oxford, england, uk


Posted:
lol am i the only clueless one who doesnt do the computer thing...? *hangs head in shame*

Livin' on dreams and custard creams


JauntyJamesSILVER Member
Carpal \'Tunnel
3,533 posts
Location: Hampshire College, MA, USA


Posted:
C++



for(int beer=1000000000; beer>=1; beer--)

{cout<
EDITED_BY: .:sparkey:. (1113246880)

-James

"How do you know if you're happy or sad without a mask? Or angry? Or ready for dessert?"


ilsanyamanic over a fence
798 posts
Location: Tas, Aus


Posted:
oh dear, the madness is spreading

Quid Pro Quo
5|>00|\|5 /-\|^3 <00|!


Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
but you've lost the point of the initial thread... think of aleph not as infinity... then it makes sence, its an old joke here at CMU.

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


Kitveteran
1,269 posts
Location: middle of Troon


Posted:
YAY i understand. I've not lost my geek since quitting compsci at uni...


*she says sitting at a linux box in her jammies after just falling out of bed starving cos she got wrapped up in HoP and LJ before making breakfast*



yeah i've not lost teh Geek...


PH34r M4 1337 4|_|th)r|7y

random murbles

BELTANE FIRE FESTIVAL. 30th april ~ Calton hill - Edinburgh
SAMHUINN FESTIVAL. 31st October ~ Royal Mile - Edinburgh


SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
Hehe - oh yeah:



10 80+tL35 0Ph 8EeR 0N T3H w4lL, 10 B0+Tl35 OF B33r,

y0u T4KE ON3 d0Wn, p@$$ IT 4R0UND, 10 8O++Le5 OF b3Er 0n +He W4lL.

There's too many home fires burning and not enough trees


nucleonnewbie
404 posts
Location: Eindhoven, the Netherlands


Posted:
ditto
what he said, minus one

I have an grafical calculator in witch you can program... ubbrollsmile

so you think Im not a newbie? Ok I'll be the King of the newbies. Nucleon the king of all noobs


flidBRONZE Member
Carpal \'Tunnel
3,136 posts
Location: Warwickshire, United Kingdom


Posted:
Goodness, I only go away for one day and there's sloppy code everywhere biggrin



Singer: That's a pretty funky language. Never seen a version of basic with 2 lines the same number (nor one that starts at 0)



Sym: That's a pretty funky wall, i could use one of those (I could make a fortune out of drunk people!) wink



Sparkey: You missed a "



perl -e '$b=$ARGV[0];while($b>0){$a=" bottles of beer";$c=$a." on the wall";$d=" take 1 down, pass it around, ";print"$b$c, $b$a,$d".--$b."$c\n";}' 1000000000



The geek test's just silly, i got about 35% iirc. It was clearly written by a nerd who thought they were a geek wink

mechBRONZE Member
Carpal \'Tunnel
6,207 posts
Location: "In your ear", United Kingdom


Posted:
you could get a 5yr old to do it with a crayon and it would look much better you know!

Step (el-nombrie)


UCOFSILVER Member
Carpal \'Tunnel
15,414 posts
Location: United Kingdom


Posted:
Oh dear God...

What have I done?

eek

JauntyJamesSILVER Member
Carpal \'Tunnel
3,533 posts
Location: Hampshire College, MA, USA


Posted:
thanks, flid, all better now, right?

-James

"How do you know if you're happy or sad without a mask? Or angry? Or ready for dessert?"


linden rathenGOLD Member
Carpal \'Tunnel
6,942 posts
Location: London, UK


Posted:
*loads up elephants tranqs* ok lets calm it down before someone decsides to recode the entire site to sing that *grin*

back


Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
so, the two 5's were a typo, but when i was a bit younger i used a version of basic (sorry, don't remember the one) that was zero indexed. I was only dabbling in programming at that point, so I thought it was really cool to start with zero rather than one... thats a little simpler than writing bit torrent and irc clients in c.



oh,alsmost forgot... the c++ version has a slight problem with formatting; there is no space at the beginning of the string literals... your print out will format to:

10000bottles of beer...(if i is 10000).
EDITED_BY: Singed Piper (formerly Mark1) (1113216823)

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


SniperBRONZE Member
Snoochie-boochie-noochies!
663 posts
Location: United Kingdom


Posted:
i think commodore BASIC started at 0.

is it wrong that gta vice city loading screen made me feel old?

still remember the half hour waits with the epileptic-touchpaper colours waiting for dizzy to load

VixenSILVER Member
Carpal \'Tunnel
3,276 posts
Location: Oxfordshire/Wiltshire, United Kingdom


Posted:
... i wish i was clever enuff to understand! xxx

tHeReS gOoD aNd EvIl iN EaCh InDiViDuAl fIrE, iDeNtIfIeS nEeDs AnD fEeDs OuR dEsIrEs.


SniperBRONZE Member
Snoochie-boochie-noochies!
663 posts
Location: United Kingdom


Posted:
you don't hun trust me hehe

Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
whoops, missed another error in the c++ code... this ones a doozie... your loop's control is i>=0, making your last line:

0bottles of beer on the wall, 0 bottles of beer, you take one down, you pass it around-1bottles of beer on the wall

if you notice i've preserved the spacing you used.

i like ANSI C better than C++.

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
Hehe! Is my code the only one without any errors? OK, it's PHP, but it's also very simple!

I remember the tape games - oh the fun! Half an hour to load something that was 4 bits or something.

Written by:

*loads up elephants tranqs* ok lets calm it down before someone decsides to recode the entire site to sing that *grin*




oooooo! Good idea! I've wanted a reason to play with VXML for a while....;)

There's too many home fires burning and not enough trees


Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
well Sym_, it has one problem... it doesn't give the last line correctly, every line prints i, where as, the last line should print i-1.

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
Dam, I shouldn't have said anything!

It loops until i>=1....so I won't get 0 bottles. right?

Maybe I could add an if so it will end it with what ever happens when you finish the song - If it's ever been finished.

There's too many home fires burning and not enough trees


Singed Piper (formerly Mark1)resident bagpiper
342 posts
Location: Vermont, USA


Posted:
true, there will never hit zero... the song just ends when the last line of a verse is 0 bottles of beer on the wall

Q:What's the difference between the Great Highland Bagpipes and the Northumbrian Pipes?
A:The Great Highland Pipes burn longer.


Page:
HOP Newsletter
Sign up to get the latest on sales, new releases and more...