> Quitting should never be a surprise for your boss
I get the spirit of this. But someone whos in tech on a visa, this is absolutely the worse advice. The fear or retaliation is real, especially in bigger firms where your manager has a lot of say. The moment higher ups have the slightest inkling that you're looking for other jobs, you'll soon get pushed out.