This is a common thought I see a lot on HN, but it's completely bollocks.
The elasticity of salary is not infinitely scalable, and is heavily based on the costs and profitability of the business. Say we took away all the taxi cab drivers in the world, demand would be immense and supply would be next to nil - in your fantasy world cab drivers would start making hojillions.
But of course, there is an upper bound to the value of a cab ride - cab fares would rise, but it won't not rise to astronomical levels simply because the cost will start exceeding the utility of the ride itself.
So yeah, in a shortage situation developer pay would rise - and rise they have, particularly in hotly-contested areas like the Bay, but this entitled attitude where "there's no shortage! I'm not making a million bucks a year yet!" is complete horseshit.
If there was 10x the supply of programmers, we could have 10x the number of jobs for them to do: they could be coming around to your house and offering to automate various bits and pieces of your life, they could be hanging around at traffic lights helping people stopped in cars optimize their phone usage, etc.
The profitability of the business is in part a function of its costs. That the business exists at all is based on an assumption of a certain level of costs, where at different costs other options may be more viable.
What I'm getting at is that there is a circularity in your objection. You assume things about the current state of supply and demand based on the current market mix of businesses, but the current market mix of businesses is the way it is in part because of the current state of supply and demand.
Yes, there is certainly a lack of elasticity in salary. The market isn't perfect. People aren't fungible. But the market is efficient enough to value e.g. doctors and lawyers quite highly. It simply doesn't value software engineers in the same way. That's just the way it is; I'm not saying it's right or wrong, and nor am I moaning about my wages (actually, I deliberately choose lower wages in return for more interesting work and flexibility in where I live).
What I am moaning about is people talking about an excess of supply or demand, like it's a plain fact.
You are right that an engineer's pay can only go so high. However, when the rate exceeds what you can afford, you simply bow out and do something different. Hire someone who does not have talent or refrain from doing the work.
Ferraris exceed what I am willing to pay for an automobile, but you won't hear me complaining that there is a shortage of Ferraris. Instead, I will buy a lesser car (an unskilled worker) and make do, or forego car ownership altogether.
A shortage implies that all the money in the world can still not allow you to fulfill your needs. If the fulfillment is out there, but you are not willing to pay the prices, that is not a shortage.
If doctors who realise they can work 9-5, and have lots of holidays, and still have a great standard of living, why should they work longer hours? It does actually happen.
Of coures the mainstream economic explanation is that if this was predictable, students will have been driven into courses before the shortage occurred (it's called "rational behavior", or "the assumption that everyone is smarter than an economist").
Obviously, some people just like work, and money. Marx was right - people can accumulate cash simply for the sake of accumulating cash (or the security it brings), not just for pure consumption.
So why do you think there is still a shortage, when there is in fact funding for innovation? Do you think the returns would be worth more investment, diverted from other current investments? If so, you should be able to convince enough other people to fund it. If not, does that not prove the weakness of your argument? ;)
(I'm arguing this with a hat on. That is, I'm taking a position that's actually somewhat more extreme than my real position, to see how it feels. I'm actually opposed to the market in many cases, but not because of quibbling over supply and demand, but rather because it is amoral - not immoral, amoral - as in it has no moral content. There is no intrinsic fairness in it. It just is, a machine driven by people's consumption, without consideration for whether their tastes are right or wrong.)
This notion of "shortage" bugs me. There's two sides to a "shortage": supply and demand; but they meet at a point determined by price, where both are equal. There is always a "shortage": demand for engineers that isn't fulfilled by supply, because they can't afford to pay the engineers enough. But there is also always a "surplus": too many engineers to warrant high income levels in the 1%, etc.
A shortage would actually exist in a rigid market with inefficiencies, e.g. price fixing. To the degree that's not true, we don't have a shortage.