If you want to make a program with as few security vulnerabilities as possible, best practice is to always make the program with as little code as possible.