In a more specific fashion, patents are just like many programming environments- you can read up on them from the comfort of your laptop. Google.com/patents is a great resource. Spend a few hours over the course of a week typing in search terms related to what you're doing, and justify to yourself why each and every patent that comes up isn't doing what you're doing. (Remember, patents expire, so even if what you're doing has been invented and patented, it might be free to exploit anyway).
Also, just don't look anything up, or send emails to your co-founder / or anyone else specifying any patents. Because if you will get sued, you will have to disclose those emails in discovery. And violating a patent knowingly is a whole different story than violating it unknowingly.