When their former colleagues found out what happened, didn't that cause them to think "I guess I'll give zero notice when I leave"? I would think this would be a net loss for most companies, due to the predictable effect it would have on subsequent departures/handoffs.
In general AFAIK they'll typically pay out the customary two week notice period but take away your physical and computer access. (By no means universal but plenty of examples in this thread of where it happens.)
If so, then no problem, right? My reading of the "two friends" anecdote was that it was somehow a problem that they were canned on the spot. If you take away my physical/remote access, I can't even be asked to help with handoff.