I've been working on updating an old site. The original author was new to programming at the time (10 - 15 years ago) and it's a huge messy nest of PHP. Logic is messy and inconsistent. He repeats the same things over and over and ovβand there are no global constants, so he references the same files using different paths. All of his page routing is switch statements, which would be fine if he had used clear variable names for the pages??? Instead of numbers. Ah, yes, the "Account" page, number 38. I knew that. There are multitudes of duplicate files, like conn.php and conn2.php, or big-long-fucking-file-name.php and big-long-fucking-file-name-2.php.bak Folders are named like "mis," "ply," and "glb"... The most offensive to me, stupidly, is how he's mixed tabs and spaces. I just
|