I want to patent an idea I've coded for a while. Any advice?
I've made a program that can be used in a certain industry, or incorporated as part of current SaaS solutions. Anything I should or should not do when filing the patent?
You should talk to a good patent lawyer. But, generally speaking, registering a patent is expensive and software patents are notoriously hard to enforce. Common startup advice is "don't do it" and that your moat should (almost) never be a patent.