2/ Demand for software is not static. Good software drives demand for more engineers in many cases, intra or extra-company. There is probably a non zero rate of wage suppression per marginal h1b currently. But an American economy with no h1b employees could feasibly have a much lower average sde salary. It is not an Econ 101 problem.