Andrew,
I guess maybe I have a different attitude than most concerning codes. The codes are there to insure a certain minimum standard of construction , electrical and plumbing installations are met. They are there for the homeowner's protection.
Example. I bought a home and prior to my owning it a couple of elderly gentlemen added a carport to it. Shortly after I bought it we got 9" of snow and as a neighbor and I were returning my ladders after I had helped him sheath the inside of his new garage, we found and measured a 2 3/8" sag in the middle of the header on my carport. Long story short, I ended up retrussing and installing a new header on this 25' x 25' carport in place. I did it THIS TIME to code. IF it had been done to code the first time, I wouldn't have had to do and it wouldn't have been nearly as difficult or expensive.
These gentlemen had made a 25' header to span an 18' span out of doubled 2x8 without any plywood sandwiched between them and no glue of any kind. They didn't waste a lot of money on nails either. I'm lucky I didn't end up with the entire carport on the ground.
A farm house we lived in when I was 6 years old burned to the ground while we were visiting an uncle one evening. The fire was caused by a gas leak as witnessed by a passing trucker on US 50. He kicked the door in to make sure everyone was out of the house. He saw where the fire was at it's early stage. There was no code for gas in those days but the house wouldn't have met code anyway.
My parents didn't have insurance when our farmhouse burned to the ground. They had 6 kids and they never did recover financially or own another home.
15 years later while stationed in the Navy at NAS Meridian, MS, my wife, two kids and I had just moved into base housing. Some 6 months later the trailer we had been renting off base for 2 years burned to the ground as the result of an electrical fire. Fires....gas or electric...scare the hell out of me.
The building code is there for protection of the average Joe from unscrupulous builders/electricians/plumbers who might take some dramatic cuts in the quality of their work just to make a profit. It's to prevent people from being put into some unsafe conditions.
JMHO.