First place I worked at had a huge codebase, where files between 100k-200k lines were the rule, rather than the exception. And no, that's not a typo, I'm talking six figures line count - and with pretty much no comments that could take up space. This was code that, before my time there, went through at least two translations from different programming languages, done by automated tools and only touched up where it broke after that. I don't know if it was a direct consequence, but there were also a lot of constructs like
function a(x, y)
{
return b(x, y);
}
function b(x, y)
{
return c(x, y);
}
function c(x, y)
{
return d(x, y);
}
function d(x, y)
{
//do something with x
//maybe do something else with x, if the 4 lines of if conditions happens to come out true
//ignore y because who needs that apparently
return mysteriousStuff;
}
which added some, but not all of the length. There's a *lot* more there I could rant about, but I'll stick to unnecessary length. Suffice it to say, there's a reason that a) I went somewhere else and b) the company apparently doesn't exist anymore.