>In a food shortage, for example, regulating the price of bread only trades one expression of scarcity (high prices) for another (empty shelves). Well sure. But the total amount of people who have some bread is now greater, versus a select few wealthy people getting all the bread they want, as the wretched masses stare longingly. You can either increase total happiness, or concentrate it to the powerful. It's pretty…
Economics answers 2 questions:
1) Who gets what today?
2) What should people prepare for tomorrow?
Regulating an excessive focus on (1) will get bad results on (2) because it makes it less sensible to be come a baker.
I'm not writing software because I believe there is a philosophical shortage of software. I do it because there are decent odds that I'll be overpaid relative to the work I put need to put in. Those odds are resulting in a lot of software being written.