First off, that depends on how serious you are, and your ability to understand the languages you wish to learn first. Not even taking the dedication and willpower to learn, if you chose to teach yourself. When you have a good understanding of how programs work then you can spend countless hours reverse engineering a game/app of your choosing and go from there.
Second, I highly doubt anything created can he hack proof unless somehow all functionality is hard coded in the cpu/gpu/motherboard and it has no loopholes. For example.