I think it's mostly supply and demand, timing and where you live. But those are the factors we rarely talk about. Instead, people complain they are not compensated enough relative to the importance of their work, their intelligence, the hours put in, their title or the length of their education or the risk they take. If people were paid according to the importance of their jobs, I would argue that plumbers, sewage wo…
There are always jobs that come out worse in some category compared to programming. The problem here specifically is that given you have written 50% of the software people are using and investors are making some millions out of it while you make $40K a year, because they sort of lured you into a deal that apparently is not working out too great for you because you were so focussed on getting the lines of code rolling out they sort of took advantage of the situation?