It seems to me, for the most part, planning codes are designed for the "Lowest Common Denominator". They for protecting the land from people who would do stupid or unconscious things to the rivers and the forests (etc.), or to their neighbors, the community, or to themselves. Unfortunately, the "LDC" based code can limit special case projects that actually make sense in some way. I say, get creative....limitation is not always a negative.
I've been a builder for 30+ years and, as I see it, "the Universal Building Code" is mostly designed around worst case scenarios (the 7.9 earthquake, the unexpected fire or flood, the 120 mile per hour wind, etc.). It often seems unrealistic....until disaster happens. Then lives are saved and property is still standing.
I've been primarily in the remodeling business and have seen a lot of shoddy work. In my mind, work done by inexperienced individuals and without the oversight of building standards can be very wasteful and at times dangerous. I've seen a lot of unnecessary rebuilds because the initial builder didn't follow code, or sensible building practices.
For me the saddest part about this is material wastage. Way too much used building material makes it's way to biomass or the landfill because it just wasn't used in a thoughtful way. That said, way more people are paying much closer attention to thoughtful building practices and land usage these days....go permies!