Recent Coded Smorgasbord
Inspired by the Pop-up Potpourri, the examples presented here aren't necessarily "bad" code nor do they imply the miserable failure that we're all used to reading here. The examples are more-or-less fun snippets of code like ones that we've all written at one time or another.
Ternary Over a New Leaf
by Remy Porter
in Coded Smorgasbord
on 2013-07-03
Dimitry likes it when the bad code he finds can be sung aloud. This particular line can be sung to the tune of “Rule Britannia”.
for (var html in data["html"])
$(data["html"][html][0]).html(data["html"][html][1]);