Code Fail - The naming of classes

At my place of work, I am mired up to my ass in the alligators of legacy code. The system is like steep side of a river bank, with layer upon layer of sedimentary code deposits. Homebrew framework on top of homebrew framework.

At times, I feel I have wandered into the cyclomatic graveyard: the place where old code goes to die. Just recently, I stumbled upon the deeply hidden class. I think the developer had much bigger plans for it. Perhaps the earth was hit by an asteroid and he perished in the great Code Freeze:

class bigClass2
{
   var $inClassArr;
   function bigClass2()
   {
      $this->inClassArr = array();
   }

   function dynamicSort($sortorder)
   {
      usort ($this->inClassArr, $sortorder);
   }
}

I am afraid to go hunting for the original bigClass, which obviously wasn't big enough.


No comments:

Post a Comment