Cerebral Flatulenceby in Coded Smorgasbord on 2017-04-04
There’s plenty of bad code that makes you ask, “what were they thinking?” There’s a whole bunch of code we get, however, that doesn’t even raise that question- the programmer responsible simply wasn’t thinking. Today, let’s examine a few “programmer brain-farts”. We turn our attention first, to Jim C.
While reviewing some unit tests, he found this line: