Linked by Thom Holwerda on Tue 10th Jan 2006 00:11 UTC, submitted by estherschindler
General Development "This time of year, even the most hard-core geek thinks thoughts of festive cheer. And there's nothing like, oh, say, a beer, to enhance the mood of seasonal glee. And after a few beers comes the song. '99 bottles of beer on the wall, 99 bottles of beer'... Oh - sorry - where was I? What, you ask, does such a scurrilous ditty have to do with serious developers? Well, nothing - except that it was the vector for an entertaining and informative experiment in programming."
Order by: Score:
Excellent
by Sphinx on Tue 10th Jan 2006 00:31 UTC
Sphinx
Member since:
2005-07-09

It's got programming, it's got beer, what's not to like.

Reply Score: 1

Perl
by sappyvcv on Tue 10th Jan 2006 01:06 UTC
sappyvcv
Member since:
2005-07-06

The Perl example is a perfect example of why it's a love-it-or-hate-it language ;)

Reply Score: 1

RE: Perl
by Derleth on Tue 10th Jan 2006 04:24 UTC in reply to "Perl"
Derleth Member since:
2006-01-10

The Perl example is a perfect example of why it's a love-it-or-hate-it language ;)

It isn't fair, really: I don't think any of the other examples are intentionally obfuscated.

(As opposed to the COBOL example, which is obfuscated because COBOL programs are always obfuscated. ;) )

Reply Score: 1

RE[2]: Perl
by sappyvcv on Tue 10th Jan 2006 04:26 UTC in reply to "RE: Perl"
sappyvcv Member since:
2005-07-06

It isn't fair to judge Perl based on that, no. I personally love it, and something like that is why. Not that you can obfuscate it, but because of how flexible it is.

Reply Score: 1

RE[3]: Perl
by Derleth on Tue 10th Jan 2006 11:54 UTC in reply to "RE[2]: Perl"
Derleth Member since:
2006-01-10

It's possible to create ASCII-art source code in C, just not as convenient because C's syntax is simpler and doesn't allow you to get away with nearly as much weird obfuscation as Perl's does. There have been some quite stunning ASCII-art International Obfuscated C Code Contest entries in the past.

Reply Score: 1

RE[4]: Perl
by Sphinx on Wed 11th Jan 2006 15:47 UTC in reply to "RE[3]: Perl"
Sphinx Member since:
2005-07-09

Good clean maintainable C source code is art.

Reply Score: 1

Wtf
by sappyvcv on Tue 10th Jan 2006 01:49 UTC
sappyvcv
Member since:
2005-07-06

Please mod this down as offtopic, but...

Why are the first 2 posts modded down? Anonymous posters can't mod down, so I would think people with accounts wouldn't be dumb enough to mod down stuff that has no reason to be modded down at all, or would have at least gotten banned by now.

Maybe new accounts shouldn't be given votes for like a week or two?

Reply Score: 2

RE: Wtf
by alcibiades on Tue 10th Jan 2006 10:18 UTC in reply to "Wtf"
alcibiades Member since:
2005-10-12

Maybe new accounts shouldn't be given votes for like a week or two?


Great idea!

Reply Score: 1

99 Bottles... of the future!
by zephc on Tue 10th Jan 2006 02:55 UTC
zephc
Member since:
2005-07-06

>>> ai = AI()
>>> ai.defrostFromDefault()
>>> ai.tell("learn the 99 bottles song")
Done.
>>> ai.tell("Can you sing the 99 bottles song?")
Yes.
>>> ai.tell("Ugh. Please sing the 99 bottles song.")
I don't have to do what you tell me! You're not the boss of me!
>>> del ai
>>>

Reply Score: 2

RE: 99 Bottles... of the future!
by Jedd on Tue 10th Jan 2006 03:29 UTC in reply to "99 Bottles... of the future!"
Jedd Member since:
2005-07-06

LMAO!!! ^_^

Reply Score: 1

RE: 99 Bottles... of the future!
by hobgoblin on Tue 10th Jan 2006 11:20 UTC in reply to "99 Bottles... of the future!"
hobgoblin Member since:
2005-07-06

another version would make the lines more and more unreadable as the ai is drinking the virtual beers ;)

as for versions. well, i kinda find that brainf--k version interesting ;)

Reply Score: 1

HQ9+
by sanders on Tue 10th Jan 2006 08:54 UTC
sanders
Member since:
2005-08-09

Is the HQ9+ programming language included in the list? The solution for the 99 bottles of beer problem is exceptionally elegant in that language.

Reply Score: 1

RE: HQ9+
by Ronald Vos on Tue 10th Jan 2006 11:35 UTC in reply to "HQ9+"
Ronald Vos Member since:
2005-07-06

It does...

Reply Score: 1

The older one gets
by alcibiades on Tue 10th Jan 2006 09:23 UTC
alcibiades
Member since:
2005-10-12

The better awk looks.

Reply Score: 1

100 buckets of bits on the bus
by juhl on Tue 10th Jan 2006 09:54 UTC
juhl
Member since:
2006-01-10

100 buckets of bits on the bus
100 buckets of bits
Take one down, short it to ground
FF buckets of bits on the bus

FF buckets of bits on the bus
FF buckets of bits
Take one down, short it to ground
FE buckets of bits on the bus

ad infinitum...

Reply Score: 1

RE: 100 buckets of bits on the bus
by Derleth on Tue 10th Jan 2006 20:21 UTC in reply to "100 buckets of bits on the bus"
Derleth Member since:
2006-01-10

ad infinitum...

No, that would be:

"Omega bottles of beer on the wall!
Omega bottles of beer!
Take one down,
Pass it around,
Omega bottles of beer on the wall!"

(Sorry. ;) )

Reply Score: 1

More languages
by theuserbl on Tue 10th Jan 2006 12:53 UTC
theuserbl
Member since:
2006-01-10

And at are a lot of more programming-languages which do this:
http://www.99-bottles-of-beer.net/

Reply Score: 1

OS "News"
by cking on Tue 10th Jan 2006 20:30 UTC
cking
Member since:
2005-12-14

http://www.99-bottles-of-beer.net/ has 99 bottles of beer in almost every programming language...

..and in other news, terrorists have attacked the World Trade Center towers in New York.

Edited 2006-01-10 20:31

Reply Score: 1