Bleh

Feb 15, 2008 22:07

Ran into some really really hideous code today. Considering that it was part of a popular bulletin board program, that stole part of it's code from a really, really, really popular blog program, I was surprised.

Global Variables EVERYWHERE. Hard Coded, absolute paths to files. No comments -at all-. And they use an undocumented syntax for if statements. I didn't even -know- the syntax existed, I have a feeling it's from many versions ago of php and is just there for backward compatabilty.

It was migraine inducing, and I sure hope I don't have to work with it much again.

YEESH.

Glad it's a long weekend, after that code, I need it.

On the upside, I now know the fastest way to query a mysql datetime field.
Previous post Next post
Up