This is my reaction reading this thread. It's astonishing.
This same crowd is typically anti-union, cheers on coal mine closures (learn to code!), want to throw finance people in jail, wants all car dealerships to disappear..the list goes on and on. They never seem to realize these business consist of normal people, most making salaries significantly lower than SV.
But high paid software engineers lose their jobs and the same people want a revolution? I'm sorry to say, but the tech crowd doesn't have many labour allies in the "real" world anymore.
Depends on where you live. In many European countries you cannot just fire someone, e.g. you have to show that the company is in a financially difficult situation or a structural decline in revenue. If your revenue growth looks like this:
https://www.statista.com/statistics/267606/quarterly-revenue...
You need other reasons (e.g. wrong behavior). Otherwise, you just find another position in the same company.