It's not application code that has value. It's the ability to use application code to create value in the marketplace, like solving problems, increasing efficiencies, creating competitive advantage, or entertainment that has value.
It also helps to have a high risk tolerance and the right mindset - It's better to ask for foregiveness than to ask for permission; Good artists borrow, great artists steal; You gotta break some eggs to make an omelette - part con-man, part gambler, part thief, ultra-competitive, obsessive, sociopathic. You need to be willing to sell your soul to the Devil or be the Devil. Nice guys don't finish first - they write open-source code for free, if they are lucky and talented.
Working for a living sucks. You don't get to live your dream; you work your ass off so someone else can live their dream.