You lost me at shitting on legacy code. My brother in Tux, we don’t rewrite code willy-nilly in the FOSS world either and for a good reason. New code always means new bugs. A shit ton of the underlying code in your Linux OS was written one or more decades ago.
Every time I hear a junior developer say we should rewrite something they have made 0.1 effort understanding, I thank the JS world for not giving a generation or two of developers a well thought out application development framework.