Of course that wouldn't work for a rich or famous person -- the cops would be embarrassed -- but for the rest of us we've been in a situation for many decades where there are so many laws that we're basically in a police state. The only reason more folks don't rise up is that so far, mostly, it's a benevolent dictatorship.
I love the analogy between code and the law, because it's so true. We in the IT industry have a unique insight into how complex systems are created and maintained. Our current legal system is way out of whack.
But politicians get elected for doing something -- and that means spending money, passing laws, or fighting wars. That's about all the options they have. So the system continues to spend more and more money, create more and more complex laws, and we end up with "wars" on poverty, drugs, and carbon emissions.
All laws should have an expiration date.