No one is stopping you from trying it.
It's amazing the reactions I get from people when I tell them the simple truth that nobody is doing you a favor by hiring you. It's a business deal, nothing more and nothing less, and if you aren't thinking of it in that way, you're going to be taken advantage of.
That used to include the so-called "professional class" but the story of the intersection between social status and work for the last few decades has been MBA types pushing those positions downward‚and preventing them from ever rising, in the software world. They may not be doing it consciously, but a lot of stuff about work-life for software folks sure looks like what you'd do if you wanted to squash the social status of a cohort that earns enough money that they'd otherwise be on their way to solid membership in the upper-middle, like micro-managy "methodologies", avoiding giving us personal offices, widespread and oft-expressed but IME rarely-accurate stereotypes about software folks necessarily being bad at everything except fiddly computer shit, and the way interviews are run.
Professors and doctors were two big groups that held high status and had a fair amount of freedom and trust to run their own affairs, once they'd paid their dues, but both those worlds have been invaded by MBAs who've taken over running everything and brought the same contempt for "mere" workers that we see in the rest of the business world. AFAIK lawyers have held them off, so far, but I may just not be aware of MBA-ification there.
Good. The rest of us are idiots
What if that makes someone think, I can do zero work at my job and I'll get paid regardless? Or they do a super bare minimum, being incredibly unhelpful to everyone and their whole team hates them?
Now you're going to have courts deciding what constitutes grounds for firing and what doesn't, if performance was above or below a super bare minimum, how that's defined for a programming job, etc.
Granted, I don't think a judge needs to be the deciding factor on letting an employee stay or go. But I do believe a contract stating expectations, a minimum employment contract (if employee meets those expectations) is necessary and should be enforced in today's business world. Even apply it to salaried, or "skilled workers". A busboy at a restaurant doesn't need a contract, but an accountant with 5 years experience should at least have that safety net.
By default, the notice period depends on the length of the contract (statutory minimum is 1 month notice, longest is 6 months). But it does allow companies to establish their own notice periods (or no notice period) as long as both parties agree.
> Now you're going to have courts deciding what constitutes grounds for firing and what doesn't
Courts are slow and cumbersome, but also mostly designed for this purpose. Any notion of a bad actor would be a legal one eventually.
Lots of people already do this.
Laying people off after coercing them to abandon stable means of sustenance is indefensible. The devil doesn't need sympathy.
I don't otherwise disagree with what you say but the point is actually to require people to think and come up with strong reasons to disagree (or agree, as it might go).
And the practice isn't usually evil, just horrible planning. Companies aren't usually hiring people knowing they'll fire them. Rather it's company-wide layoffs or something, and the manager is as surprised as the employee.
So it's important to look at tradeoffs rather than just declare that one side is evil.
You mean, like they already do (ultimately, with administrative agencies as a first line) because of public unemployment insurance?
The difference is, of course, the company can afford the risk. The have hundreds/thousands of employees. You have one job.