Sometimes you get assigned to a project that is so fucked up that you can't help but laugh when you start to understand how it works. And yet at the same time you want to murder the families of the original developers.
When you are coding there are just some things you just don't do. I mean no one in their right mind would ever think of doing things kinda way. For some reason they all seem to congregate in this mess of a project. The must frustrating yet most laughable at the same time is the boolean logic in the database. They Inverted it. 1 for false and 0 for true. Even you MIS guys can understand things just don't work that way.
As you can imagine this code generates a lot of exceptions. The original developers had the fore site to have the app send an email to themselves when ever an exception occurred. Basically a little message where the exception happened and a stack dump. However, there is sometimes an error when sending out the email. So guess what, it sends out an email letting you know that an error happened with the previous email. I laugh every time that happens, then when I realize that I have no idea where the original error occurred I cry a little.