There are certainly pieces of code that should be put on display, for example productions from the demoscene[1] and competitions like the underhanded C contest [2].
The code in these cases is usually wizardry understood by a select few, but the stories, optimizations, trickery and even formatting can be told to anyone who loves design.