One company I worked at had poor code quality, but I chalked it up to poor engineering culture - a lot of outsourced crap code and no time dedicated to go back to clean it up.
Another company also had a code base with terrible quality but I figured it was because it was a startup and they were rushing to get features out.
None of the companies I've worked for are big ones, and I've always wondered if these levels of quality were the norm, and leaks like this really give me insight to what would otherwise be private code.
Of course, Twitch was also a startup so maybe this was a hack that made it into production as the author notes, although I don't imagine a better solution would've taken much more effort to implement.
Well you could also argue that I'm the common denominator here and the code isn't poor per se, it's just that my expectations were too high when coming into the professional scene - which is what I'm leaning towards currently - I don't really know what to think.