|
At a previous job, I had to maintain a huge pile of very, very poorly-written PHP for a variety of homebrewed web applications. It had several major problems. First, the guy who wrote it absolutely insisted that all of the code for a given application be in one PHP file. Second, no documentation anywhere. No comments, no notes, no nothing. His variable names... well, see below. Third, he didn't believe in functions. Everything was written as independent procedures, repeated as often as necessary. The only functions I found in his code were obviously cut-and-pasted from example books because they didn't match the rest of his style at all. Fourth (and this is the real horror), he had an include.php file that had hundreds of lines of string replacements for HTML elements. And they looked like this: code:
More often I ended up just throwing out big chunks of his code and replacing it entirely. I really wish I had had time to totally re-do the accounting system before handing it off to my replacement, because giving responsibility over that mess to someone else is probably the worst thing I've ever done to a human being.
|
# ¿ Mar 25, 2008 00:59 |
|
|
# ¿ May 2, 2024 17:51 |