$BottlesOfBeerOnTheWall = 99;
Noodleroni writes "The First Maybe-Annual 99-Bottles-of-Beer-on-the-Wall-Proggie Contest is now under way! We are looking for your most compact, obfuscated, or other wise cool code to print out the entire lyrics of the aforementioned, very long, song. Maybe we'll even get some submissions written in Malbolge?"
.. mainly due to the fact I can never come up with anything good. :-(
FP?
The closest I've ever come to this (or plan to) was a quick and dirty perl script which generated all of the words to "4294967295 Bottles of Beer on the Wall", which was piped to festival.
My roommates, while amused for the first 10 minutes or so, threatened grevious personal injury a few hours later.
-transiit
if [ `uname` = "FreeBSD" ]; then
echo you\'ll be dead before this song is over;
fi
lynx -dump http://www.noodleroni.com/beerlyrics.txt
:-)
Undoubtedly, the first 5 million entries will be along these lines. So I fully expect Mr McLean to disable internet access, and/or modify the page at http://www.noodleroni.com/beerlyrics.txt to say "SUCKER!" or something like that.
Write an obfuscated proggie that roots the system, searches for the file beerlyrics.txt and if it finds it pipes it to stdout (followed by /etc/passwd), and then proceeds to spread over the network following the same actions on each machine
Write a program that calls 911 on the modem, and then drunkenly sings the 99 bottles of beer song to the 911 operator by using 56khz 1-bit audio :-P (calling internationally works also ;-) )
Write a karaoke 99 bottles sing-along proggie, which records his vocal patterns and then calls the whitehouses and uses his prerecorded phonetics to generate a terrorist threat towards the president in his voice!
I'm sure you can come up with more than this, but these sure seem to be winners to me.
Occam's razor is the blind faith in the natural selection of least resistance and in universal oversimplification. -- EF
I'd like to see an entry that progressively prints out drunker and drunker approximations of what the actual lyrics should be, then after about 20 beers it dumps core and passes out... ;-)
Indeed. Any "99 bottles" programming list complete enough to include the infamous sendmail version is more than enough. No contest need be held.
Besides, "99 bottles" is boring. Use the programmer's version:
99 little bugs in the code,
99 little bu-u-u-ugs,
fix a bug,
compile again,
100 little bugs in the code.
(Subsequent verses increase the number of bugs by powers of two, i.e., 99, 100, 102, 106, 114, 130, 162, 226, ...)
You cannot apply a technological solution to a sociological problem. (Edwards' Law)
I am a grown adult, you see. I am capable of speaking in complete words.
Duane
"The kids today used to say stuff like hizzook when they meant hook, like "off the hizzook". Now they just say 'hizzle'. It's as if, having added a syllable to the word, they're now too ignorant and lazy to bother finishing the damned thing."
www.HearMySoulSpeak.com