I'm not a fan of software patents. To be honest, I wish we didn't need a patent system at all. But since we don't live in the Star Trek universe and world communism turns out not to be the economic panacea that its creators hoped, we need something to protect the rights of inventors. Same thing with copyright - before it came into being, artists and writers had to rely either on fickle patronage or else hope to make some money on their first sales run because after that it was a free-for-all. Although I hate the way IP law and institutions have swung towards the opposite extreme and are now damaging to consumers and the general cause of innovation, those rules exist to solve a genuine economic problem.
It would be easier to overturn software patents if there were some alternative proposal to reliably secure the fruits of innovation to the inventor. If that task is left to the market, then a) there's abundant evidence that profit will win over ethics, and consumers won't know or care and b) people whose time is best spent innovating will have to spend more effort on marketing and monetizing their IP and fending off competitors, which is inefficient for solo inventors or small firms. So is spending a lot of time on patent work, admittedly, but a patent is a more reliable shield against having one's invention ripped off.
Coding is a creative process - I write pages of code each day and every single line and idea I use in there might be covered by a patent of which I haven't heard yet. How is that supposed to work? We don't have patents for writing, music, painting, etc. although you could use the same arguments about original work and the danger of people ripping it off (we do have copyright!).