The Daily WTF Gavin continues work on the old C++ app he inherited. Today we get a delightful smattering of bad choices. HRESULT
The Daily WTF “The attached class connects to an Access database,” writes Nicolai. That’s always a good start for a WTF.
The Daily WTF Tim Y. is on Fire with this burn. “Competing teams inside Google? Or just the AI recognizing marketing tactics?” Not to
The Daily WTF While Java didn’t invent putting a toString method in the base class of every object, it certainly made it mainstream. The
The Daily WTF Comments explain a lot about our code. And sometimes, the comments explain more than the code itself. Alastair found this lovely
The Daily WTF While poring through some VB .Net code, John noticed some odd things in their datamodel. For example, a different process would
The Daily WTF You have some text, and need to replace every sequence of spaces with a single space. E.g., My text becomes My text. Now, if
The Daily WTF An anonymous friend sent us our frist test in prod for this week. And then there will be more, and more, and more. “This came
The Daily WTF Greg‘s co-worker really wanted to make sure that a variable was correctly set to true or false. So they did this: if (isValid
The Daily WTF Meta-programming- programs which generate programs- is a delightful hobby, but usually shouldn’t be used in production code.