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.
CompareObjectAsIAlertDocumentOrNullIfNotCastable and More
by Alex Papadimoulis
in Coded Smorgasbord
on 2010-12-20
"I found this line of code while doing some cleanup," Adam Aldrich writes, "this has to be the worst way to set a boolean variable to false."
bool memberHasFingerprint = bool.Parse(bool.FalseString);