We just interviewed a PM from HPE and to our surprise, he makes ~$180k a year. We hired an awesome candidate for $80k.
And no, finding a job in 2 weeks is not realistically obtainable for a senior engineer. Try 6 months to a year. This whole 'developer shortage' BS I keep hearing needs to stop.
And besides, most employers' hiring timelines (from first contact to first day on the job) are longer than 2 weeks.
No BS or bad vibes; Just real peeps writing code and having fun doing it and always looking to add great people to the team because the demand is high and experienced talent is in short supply.
* you shouldn't work for a job you are not going to be happy about (of course you can't be too picky)
* because interview sucks (numerous highly regarded engineers were turned down by big tech companies)
* because some jobs require you to move despite you like the job
Good for HPE PM though.
"Two weeks notice" is a social nicety, good for maintaining good relationships and status. If you don't care about those things, you can quit or fire on the spot.
Note that depending on unions (rare in IT) and mandatory employee representation (Betriebsrat) for big companies, firing people can be harder, especially for long-term employees.
Examples of this would be if you're caught stealing or harassing a coworker - or if your employer is breaking the law by repeatedly not paying you on time or endangering your health etc. You cannot be fired for being late once. Your employer has to document that he has told you "Do not be late again, or else" (and you have to sign off on this).
Work load may not be unreasonable. Usual work load is 40 hour weeks, and overtime is dependent on contractual definitions. Some people are (by union) not able to work more, others are exempt from overtime restrictions (managers), others will receive money or free time as compensation. You can enter contracts that specify a certain amount of overtime work, but unless they are specific enough, those clauses are void. You cannot get less than 24 days / year of holidays, you must not work on Sunday (unless: emergency or working in an exempt job, like healthcare), and employers risk fines/prison if they deny you those rights.
Overtime usually requires an explicit order, and is limited to 48h total work time /week. Anything more (for example: seasonal workers) needs to be compensated with free time in the following 6 months. So an employer can demand a death march for a project, but even that is limited to not more than 10 h/day.
That said, while the law may be on your side, people may work more than the contractually defined amount "because it's necessary / they need me there" or other strange reasons.
(note: there are exceptions for all rules. When your data center is down for some reason, you are not going to tell your boss "sorry, my 8 hours today are up, find someone else to restart those servers. I'll be back tomorrow.")
On your last day, you (should) receive your letter of recommendation (Arbeitszeugnis), which by law needs to be a positive statement of what you have done, enabling you to get another job.
Slacking off in the last 4 weeks _may_ cause your employer to give you slightly less than a glowing review. Some employers take those letters seriously and if your last boss writes "he did the best he could with the tasks that were given to him", that's not going to reflect well on you.
edit: there is a whole "secret" language for those certificates of employment / recommendation letters, where employers may try to sneak in outrageous stuff ("He had an open ear for the concerns of his female coworkers" - grabbing them or being otherwise inappropriate towards them ), but since most companies do not want to haggle in front of a judge about the exact phrasing, it mostly is written in an okay way. Often you will be told: "Write this letter yourself, you know best what you did here, I am going to sign off on it."
Read https://www.thelayoff.com and typically any big companies layoff discussion will mention the severance package being offered.
At the same time, they can fire us (usually being called into HR room and forced to resign) at will. Even if there is any compensation, it will be 3 months basic pay (basic is only a percentage of the full salary).
Thus we get to enjoy the bad things of capitalism without any of the protection it offers.
As it is, I think you do have all the protection capitalism offers.