It might be. I'd bet the AAA gamedev industry has the worst code quality on average, due to a combination of routine crunch, large team sizes working on the same product, and an "if it works, ship it" mentality.
They're like a freshman finishing their paper the night before - hell no they didn't edit for clarity, much less added depth.