Does that actually happen for really senior developers though?
I've also seen this echoed by even more senior developers, e.g. this tweet by John Carmack: It is scary to look in some old code that hasn’t been touched in years, and see a completely non-thread-safe static global variable used. [2]
--
[1] My code quality is improving all the time. However I'm more accustomed to my emotions and fully expect progress, so I'm not exactly embarrassed.
[2] https://twitter.com/id_aa_carmack/status/339406631613890560