Of course, there are legit differences in demand for all sort of reasons but it's hard to imagine some equalization of demand and compensation not happening. Especially given that for programming, as opposed to computer science more broadly, the barriers of entry are lower than for engineering more broadly.
And, like... we _do_ see that the growth in CS degrees granted (broadly speaking - the most granular data I could find is "Computer and information sciences") does slightly outpace other the growth in other Engineering degrees: https://nces.ed.gov/programs/digest/d20/tables/dt20_322.10.a...
CS/CIS went from 43,066 in 2010-11 to 88,633 in 2018-19, while Engineering went from 76,356 to 126,687 over the same time period. ~106% increase vs ~66% increase. Of course, degrees granted are a lagging indicator; if you graduated in 18-19 you didn't start later than 14-15. It's possible that the rate of increased enrollment in CS has continued to itself increase, since compensation really only obviously went on a tear a couple years after that. Nonetheless I'm very bullish on the 5-10 year outlook for SWE compensation, to the extent that it's reasonable to make predictions that far out in the future.
1) An absolutely insatiable demand for software as _everything_ needs to be remote friendly and digital.
2) An equally insatiable demand to offshore engineering talent for a fraction of the cost.
I'm not sure which will have a greater effect. Technically, if the demand for software grows faster than the world's ability to educate developers, salaries might actually grow. However, there's a real chance the gold rush of super high California $300k+ software salaries is coming to an end.
Personally, I'm seeing moving into management as more attractive everytime I see an article posted here about remote work. People here are understandably dismissive of this, but it's happened before in a lot of industries.