But most software patents aren't inventions; they're just brain farts with money behind them. They might not be trolls, but they went to the toilet, had some random idea I had 20000 times in my life already, but they patent it genuinely thinking it's anything original.
There are many none trolls, like the famous Amazon one-click buy one; everyone in web dev invented that in the 90s by themselves; they patented it. How is it worth protecting?
If you did invent and put the time and effort, how about selling your products; if someone else does it better, that's life. Especially in software; the pain is in the development and finishing, not the invention. The idea is absolutely worthless, outside this broken patent system.