"you might think all those tests are a waste of everyone's time and your money, but that's the Code so we gotta do them"
There'd be less programs written, and those programs would be more expensive. But we might finally start making a dent in the "80% of software projects fail" statistic that hasn't changed since the 60's.
But I do understand and partially agree with your primary point.
Of course there are lots of old temples and shrines but even those have often had every single piece replaced. I was really surprised a couple of years ago when one of the local shrines tore down their building completely and rebuilt it exactly the same!
Whether this has to do with earthquakes or not, I'm not entirely sure. My wife and I have been thinking of buying a house and I keep having to remind myself that I will lose money if I ultimately sell. Our current plan is to wait until we're a bit older and then buy a not-too-old used house at a discount ;-)
It was known that older houses were dangerous in earthquakes (I believe the safer building code dates from the 80s), but no one was really worried about it until the Kobe earthquake where most damage was borne by older buildings.
I think there's a quite different lesson in these codes. What's the difference between software developers that don't have a Code and electricians or plumbers who do? Not all that much. Except that we get to spend a lot of time trying to talk people out of doing stuff using reason and logic. People who got the job they did instead of your job because they weren't quite so good at reason and logic.
Pull the sort of things we deal with every day on an electrician? Fuck you, I'm not doing that, it's not to code. Now cough up the time and materials to do it right, or we're done here. Don't like it? The next guy you call is going to tell you the exact same thing. Have a nice day.