CodeSOD

Code Snippet Of the Day (CodeSOD) features interesting and usually incorrect code snippets taken from actual production code in a commercial and/or open source software projects.
« Jun 08

July 2008

Aug 08 »

The Lesser Date

2008-07-30
Generally when Jared has to compare two dates, he'll do something simple like "if (date1 < date2) ..." A contractor no longer under his company's employ had his own unique approach...

A Bit of Closure

2008-07-28
"After our UI developer left," Danny writes, "I was tasked with figuring out why one of our admin pages would get stuck in the middle of the loading screen."

tblTimesheet

2008-07-23
Not too long ago, Erik was hired to do extend and maintain a timesheet application for an employment agency. It was an ASP/VBScript web-app with data that lived in the Everything Database: a single SQL Server database filled with random tables from all sorts of various applications.

I'm Dave, Oh Yeah!

2008-07-21
Originally posted in the sidebar, "Throgdor the Bold" was having a few JavaScript issues on Houston Chronicle's site and took a peek at the source code. At the bottom of their utils.js, he noticed this...
"Having recently upgraded my forum software," Kinta wrote, "I noticed that my site had been running incredibly slow."
Document Dis (from Lawrence)
« Jun 08

July 2008

Aug 08 »