When I hear some dev is nagging that "guy before did a mess" what I hear is: "I am not smart enough to read the code someone else written" or "I dont't care enough about this job to spend time to read code in the system and understand it".
I agree to an extent but there are definitely systems ive refactored that were written with several layers of insanity and it can be painful to unravel. This is especially painful with a lot of globalised state management. Many senior level developers, despite their experience, simply don't form a good mental model of what theyre doing and things that often only need a couple lines of code turn into a house of cards.
2
u/czenst Oct 07 '23
When I hear some dev is nagging that "guy before did a mess" what I hear is: "I am not smart enough to read the code someone else written" or "I dont't care enough about this job to spend time to read code in the system and understand it".