Patents are a disaster. The whole point was to encourage innovation. If you actually look at the state of patents in the US today, they do no such thing. Certainly not in software, and very arguably not in many other areas either.
Linus Torvalds