The 1% fallacy
Here is how to make a fortune writing software: Pick a large and established software market e.g. back-up, anti-virus or customer relationship management (CRM) software. Write a new product for that market. Get 1% of the market. Retire to your own island. These markets are massive.