The Daily WTF Visual Studio and the .NET languages support a feature known as “regions”. Enclosing a block of code between #region
The Daily WTF Good method names are one of the primary ways to write self-documenting code. The challenge there, is that documentation often
The Daily WTF This week we have an unusual number of submissions involving dates or timestamps. That is, the usual sorts of error’ds, but
The Daily WTF Today’s a simple one. We’ve all seen code that relies too heavily on string concatenation and eschews useful methods
The Daily WTF Juliano had this very non-WTF bit of PHP code: if (!$path) { //do stuff } else { //do other stuff } After another team member made
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