Developers love rewriting “old” code

I think “microservices” is so appealing because so many Developers love the idea of tearing down the “old” (written >12 months ago), “crusty” (using a language they don’t like/isn’t in vogue) and “bloated” (using a pattern/model they don’t agree with) “monolith” and turning it into a swarm of microservices.As an Infrastructure guy, the pattern I’ve seen time and time again is Developers thinking the previous generation had no idea what they were doing and they’ll do it way better. They usually nail the first 80%, then hit a new edge case not well handled by their architecture/model (but was by the old system) and/or start adding swathes of new features during the rewrite.

In my opinion, only the extremely good developers seem to comprehend that they are almost always writing what will be considered the “technical debt” of 5 years from now when paradigms shift again.

I call this the painting problem. Painting the walls of a room seems easy to an amateur: You just buy a few gallons at Home Depot and slap it on. But a professional knows that prep, trim, and cleanup are 80% of the job and they take skill. Anybody can slap paint onto the middle of a wall. What’s difficult and time-consuming are making the edges sharp and keeping paint off the damn carpet.
So you are saying edge and corner cases are the most difficult?