Well the USPO is woefully out of date (and there are investigations into it as to how to bring it up to date). Part of the problem is how the system is setup (it tends to favor acceptance over rejection).
But basically to get a patent past the USPO, write it in language only a lawyer or computer scientist will understand and you can patent almost anything.