If you think that you will have better code at your next job, look at this HUGE HN thread on how many people dealt with shockingly bad codebases: https://news.ycombinator.com/item?id=17819771