songsincode

Songs in Code: Death Magnetic, Metallica

while (albums.sortBy(loudness)[0] != this):
    for track in this.tracks:
        compress(track)
    multibandcompress(this)

Explanation: make this the loudest album ever.

Songs in Code: Enter Sandman, Metallica

light.exit()
night.enter()
napster.share()
user.sue_for_copyright_infringement()

Explanation.

Songs in Code: Everything Sounds Like Coldplay Now, Mitch Benn and the Distractions

struct {
    bar piano[4];
    bar intro[16];
    bar drums_and_guitars[16];
    bar high_bit[8];
    da_capo_ad_nauseam;
} coldplay;

Explanation is best given in the form of the original song.

Songs in Code: A Forest, The Cure

struct tree {
    void *item;
    tree *left;
    tree *right;
}
void song() {
    tree title[10000]; /* come closer and find the code */
}

Explanation: “title” is lots of trees.

Songs in Code: One Second, Paradise Lost

#include <unistd.h>
int main(int argc, char *argv[]) {
    sleep(1);
    return 0;
}

Explanation: the program exits after one second.

Pages

Subscribe to RSS - songsincode