Mainining over a million lines of php code, without a lick of version control.
containing shit like:
foreach ($array as $key=>$value) {
if ($foo == $searchkey) {
doSomething($value);
break;
}
}
And:
file1.php:
<?php
switch ($foo) {
case 'something': foo(); break;
case 'somethingelse': bar(); break;
file2.php:
<?php
include('file1.php');
case 'AND SOMETHING MORE': baz(); break;
}
I quit. I enjoyed every moment of my 4 weeks notice, smiling, dancing, happy, for the first time in my life, I could see the end of the horror.