Despite the advice above.
There are many factors to "an offer", for some money is important, for others support for built up work habits (odd hours) may be another. That said, I think the initial advice of the article is spot on -- stay engaged with your employees.
The last three times I've left a company, it was either a surprise or a shock. Twice bonuses promised were over due, the third, slave pits that founders refused to see (previously commented on).
If, as in your three cases, the employer has clearly failed, then the employee is in a position of strength. They probably don't even want a counter offer, as they are already resolved to leave. If the employer is surprised, it simply further illustrates the problem and validates the decision to leave.
From the employer's perspective, if the employee is just trying to leverage better comp opportunistically instead of through merit, it's also unwise to match or beat the offer. In my experience, this only tends to happen with younger, inexperienced people who don't have a long view of their career.
Either way, my policy is that when a person leaves, that meeting marks the end of their tenure at the company. Pay them for the two weeks notice they are always willing to give, just as if they were still working, and make all honorable accommodations. But once someone has resolved to leave, it's just better for everyone if they weren't around for an extended farewell tour.
This is often very difficult policy for managers, because they fear that a person is indispensable and will require the full notice period to train up replacements. They worry about the disruption to the business that it would cause. But if that's the case, it simply highlights another management failure. I'd rather take the business disruption, which gives my team an opportunity to shine, instead of the cultural disruption of having someone there-but-not-there, anxious to move on.
It's common for employers in this industry to feel so entitled to your labor that they feel betrayed and hustled, categorize you as an uppity liability, and have to re-establish face with aggressive moves.
If asking for a raise isn't enough to get it and you can't offer a specific marginal-value carrot in return, the only leverage you can develop is another offer. But it's too big a stick - you probably aren't just going to get another raise without causing hard feelings and inviting retaliation. You wouldn't try get improvements out of an abusive relationship by letting your SO know you had options.
The only way you can build a mutually better deal, including a better salary, is if there is justifiable trust. Employers can earn that trust by fair dealing - like paying fairly well before we both have to deal with nags, demands, and sales pitches.
Employers who can't earn their employees' trust have shown failures of leadership and deserve to be walked out on.
In most cases, I don't even try to counter, as it's usually pointless, but in those cases where I do make a counter-offer, I'm doing it intending to keep them in the fold "permanently" (3+ years, ideally longer).
Anyone who responds on HN claims to behave in an ideal way, but if you took this for an indicator of the industry you'd be surprised almost immediately - whether because these claims are often untrue or simply because the people making them are so unrepresentative.
Suppose Abel is working for Manny; Abel gets a better offer and tells Manny. Manny decides to counter.
In order for it to make sense for Manny to counter and plan-to-fire Abel, he has to be planning to hire Baker to do Abel's job, but wants to keep Abel around a while for stability and to on-board Baker.
That's enormously expensive and risky compared to just paying Abel more in the first place or to just counter-and-keep Abel. If the job is that critical, pay Abel. If it's not that critical, just let the job stay open until you hire Baker.
Taking on the severance costs to fire Abel later (and pay higher UE insurance) just to "get back at him" is self-defeating more than it could possibly hurt an employee who has just today proven he could get a higher-paying job. So, where's the "win" for any rational Manny?
The epilogue to his story is that most of the team he built worked for Sam, not the company. Within six months the team had disintegrated, with almost all of the senior staff having moved on after seeing the way Sam was treated. Frankly, any management worth their salt would have seen that one coming way before cutting Sam loose.
The lesson here is that even though its against their own self-interests, the counter-and-fire thing happens, and probably more frequently than not (though a single vague anecdote does not evidence make, I admit.) I think any engineer who thinks they ought to be making more should ask for it. But they should also be prepared to move on if they don't get what they want, unless they really trust their managers.
And never take the counter.
Deadlines.
Having you walk out this month may be a big deal while next quarter, not so much. Or I may have found your replacement by then.
It's not about "getting back at" someone. It's about minimizing my risk as a manager. I would rather have 80% the performance with an 80% chance someone will be around in a year rather than 100% the performance and a 50% chance someone will be around in a year.
That would manifest itself as me being more aware of the risk, but I'm also rational enough to know that unless I find a way to rebuild that trust, I might as well have not made the initial counter-offer. (I'm also writing from a pretty big [by typical HN standards] company perspective. On a sub-10 person technical team, the equation is a lot different.)
That would be a big motivation for me, especially if his job is critical.
I distinctly remember being trained on how to handle counteroffers when I was first getting into the business. I don't use any of those tactics these days, but I am certain lots of recruiters do. The amount of publicity that recruiters give to these numbers (which usually lack a source) adds to the misconceptions.
But citing the ulterior motives of recruiters doesn't establish that it's safe to take counteroffers. There's no reason it can't be both at the same time: recruiters do have ulterior motives, AND it is dangerous to accept a counteroffer. Waving at the badness of recruiters doesn't dismiss the issue.
The risk of taking counteroffers isn't unconditional, it depends on the employer. The person evaluating a counteroffer has to consider the trustworthiness of the employer. In the best case, that still includes offering a lower-than-market wage (or how did you easily get a better offer?)
While it's true that recruiters' interests often aren't well aligned to the candidate's interests, employers' interests often aren't well aligned to employees' interests either. BUT... in these cases where someone is already desperate enough to be hustling for other offers to push their employer's hand, it's already a lot more likely that the employer's interest is less aligned with the employee than the recruiter's is.
Raises come out of profits and many people do take it personally and can't be professional and more importantly, decent about it.
If you are facing a counteroffer, you are the person best positioned to evaluate whether your employer is trustworthy - not HN commenters, not a recruiter and certainly not your employer.
I can see how people who hire on HN are scared of recruiter memes about counteroffers. A lot of us want to get rich and want shortcuts. Unfortunately, those recruiter memes align with certain realities. There is no shortcut, you (generalized you, not fecak) have to earn the respect of employees as a fair dealer if you want any rational person to want to stay or even consider your counteroffers. If you don't earn that respect, you have no right to complain: you deserve to lose the employees because you yourself adopted a strategy which puts a little cash in your hand in exchange for this very problem.
I do believe that people who accept counters are taking some sort of calculated risk, and it does depend on the company and management. When you've been consulting to a job seeker for some time, get him/her an acceptable offer, and then find out about a counter, it's difficult to remain a credible source. I've recommended to candidates to accept a counter on at least a couple occasions, and I once accepted a counter (and stayed 5 years).
The secrecy of counteroffer benefits the company, as if it becomes known that a counter is your quickest means to a raise you can be sure others will follow suit. But that secrecy also has some benefit to the person who accepted a counter, as any potential questions about your loyalty or (in some situations) your perceived willingness to abandon the team during a crunch time won't be exposed and the accepter can continue business as usual to a degree.
They might also feel they will be taken as a more skilled candidate if they can quote a high current salary, enabling them to score a better role at a better next employer. That might seem counter-intuitive, but if you know you are under market, people selecting employees for quality over price will wonder why.
A counteroffer doesn't change whatever conditions about a job made you leave, be it unfulfilling work, coworkers, a bad environment, long commute, etc. - unless your only concern about the job was being underpaid, which is likely far rarer.
It would be pretty straightforward to add a couple questions to any general survey of employees in an industry to figure it out.
A couple years ago I posted an article here about an agent system where job seekers were the recruiter's real client (and footing the bills), which would resolve this particular instance of misaligned incentives.
The reason it seems like they never stay is that they don't talk about the offer they didn't accept. The negotiation happens over the course of a few days, and they don't mention it to the other employees. So there's a big bias in how frequently you hear about the negotiation. Whereas if they leave for another company, of course everyone knows about it.