You never let someone who gives notice keep their badge. You just say, "Congrats, there's the door. Cheers!"
You have no control over someone who has given notice. If they do good work... that's great. But if they do shit work, what are you going to do, fire them?
The liabilities are outrageous, and the payoff is only 2-weeks dev time (if you're lucky)... at the regular rate... Nah, not worth it.
And you have that person in the office talking about how they're moving on to a better role, with more pay, and it can quickly turn into a cancer for team morale.
I have never seen an article with such horrible career advice on Hacker News. This is bad advice.