It's stupid in hindsight, but I just wanted to give him a chance to better prepare for me leaving, like start looking for new developer(s) or shift plans, etc.
I don’t think it’s stupid at all, it just shows you had a not so great manager. They could have used this information to start preparing without revealing the specifics. Unfortunately it’s these types of incidents that make people weary of engaging in this level of candidness.
At the company I just left, I felt extremely comfortable telling my direct manager I was interviewing. By the time I got an offer we had a plan in place for my departure.
It’s certainly a situation specific action, and it’s unfortunate that more managers aren’t equipped to handle this adequately.
> I don’t think it’s stupid at all, it just shows you had a not so great manager.
No, it was epically stupid. The manager was actually very good at their job for reporting that a key team member was planning on leaving and the process for replacement and knowledge transfer needed to begin ASAP.
What both you and the GP haven't figured out is your manager is not your friend, their duty is to the company and you can be friendly but you can't ever let yourself forget you're both their for a paycheck.
If either of you slip information to the other that jeopardizes that person's paycheck you've done them a disservice and force them to choose between financial stability and perceived loyalty to you.
The most pernicious propaganda I've seen in startups and small companies is that _we're a family_ and you can come to me at any time about anything. That's absolute dogshit and you need to put the coolaid down, family doesn't negotiate pay raises and equity, families don't quit or fire each other.
I disagree with almost everything you've said. That remark about financial stability is laughable at best.
Look, I don't have any problem with my coworker(s) being more loyal to the company than to me. I do have problem with lying, though. Lie to me once and I'll never want to deal with you again.
Isn't what notice period in the contract is for? If you find something nicer, you give a notice and they can prepare your replacement. Why this additional weird dance?
That's an extended courtesy. As a manager, one needs to continuously be planning on how to not let all the tribal knowledge collect with a select few. Pairing people, coming up with processes for documentation and presentations, etc are part of being a successful manager.
Another way to handle it might have been to say, "we need to improve cross-training on the team in case someone leaves". Let them figure out if the subtext themselves, if they manage.