I'm inclined to sympathize. Patentable code is a bit of a bizarre beast, and as beasts go, an incredibly dangerous one. The concept of patenting the Facade design pattern or a for loop is not only silly, but would be a giant roadblock to process. Software has come a long way over it's open nature. Coders share their work. Theirs too much to know to not help each other, and we care more about solving problems than securing business interests.
But, on the other hand, patents also have their place: to incentivize innovation. If a company invests millions into a product only to have the codebase stolen, what protection is there? And guess what jobs start thinning out?
Here I have to admit my ignorance. Patenting conceptual or code components is ludicrous, and patenting abstract ideas like a scroll bar is also ludicrous, but there seems to be a certain balance point, some form of patentable, that straddles the line between the incentive and freedom of innovation.