Write a program in the language of your choosing which when read are the lyrics to a song. It must be a valid program which can be compiled and run without errors. While you could technically print to the screen all the lyrics, you're encouraged to do it with style and avoiding string literals whenever possible.
Given that this is difficult on of itself, you're allowed to write a single section of boilerplate code which doesn't count towards being readable in the lyrics. However, once the block of code begins which must be read as the lyrics to a song, you cannot interrupt it until the song is finished. You can indicate the beginning and end of the song code with comments. Please also specify the lyrics themselves as you would read the code. You can be "liberal" with your interpretation so long as you don't stray too far from what's written, otherwise it will cost you points.
Partial song lyrics are allowed, though you get double points for having the words to an entire song. Judging is divided into 3 categories:
- 10 points - Originality
- 10 points - Song difficulty
- 20 points - Representation of that song in code.
For each submission, I'll give you your score in a comment below. If you edit your answer, just give me a comment indicator and I'll re-evaluate it accordingly. However in order to be fair, each re-evaluation subtracts 2 points from your total score.
An example might be the following:
public class Song {
public String play() {
// Song begin
try {
if(this instanceof TheRealLife || this instanceof JustFantasy) {
throw new InALandSlide();
}
} catch (InALandSlide e) {
}
return "No \"FromReality\"";
// Song end
}
public static void main(String [] args) {
Song song = new Song();
song.play();
}
}
Which gets read:
Is this TheRealLife?
Or is this JustFantasy?
Caught InALandSlide.
No escape \"FromReality\"
Instrumentals aren't allowed, wise guys. ;)
HQ9program9? :P – Li-aung Yip May 16 '12 at 19:33