I don’t post on weekends for two main reasons. First, who actually reads blogs on the weekends? I thought that’s what work was for. Second, it seems that visiting TheDailyWTF.com from my home connection is like visiting it from a 1200 baud connection. Interestingly enough, TheDailyWTF.com is hosted at my house, and I’m probably physically 25 feet away from it right now. But today, I think I’ll brave the 30+ second page load time (seriously) and share with you this ASP VBScript include file from Michal Chaniewski:

This fragment of code logs request information with some details into DB. It looks like it was obfuscated with some tool, but wasn't. It is in fact this particular programmer’s style. This is just a little fragment of an e-commerce application using about 40 tables with cryptic table and field names, no stored procedures, at least 17 basic include files used on every page, all weighing about 50, 000 lines of code interpreted per request.

Michal, did we work at the same place? I think I've had to do some maintenance on the application you're talking about ... the developer just didn't believe in COM objects, as they weren't portable enough. Each page took a good five seconds to load. Fortunately, no one actually used the site ... I wonder what it would have been like if more than one person tried to access the site at once.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!