Participating in the upside of working in the private sector and, more broadly, in any capitalist system, means also participating in the downside risk. Sometimes you'll be out. Don't take it personally, and do your best to jump ship at the point when you think that some bozo is steering the company toward ruin.
The person you are saying that to, who almost certainly didn't make the decision that you should be laid off, may rightfully view it as someone unable to control their emotions in a difficult moment. This is completely understandable. It's also completely understandable to remember that, and maybe that person is reviewing resumes in the future and doesn't want to work with you because of a brief outburst which does nothing to change anything?
I hardly think that making a single passive aggressive dig is "being unable to control my emotions" though. It's a smartass comment that admittedly was intended to maybe hurt his feelings, but it's not like I screamed at anyone or went on some loud rant.
But in some occasional cases, the bridges you burn light up the way forward.
These middle managers are robots in an organization. You knew they saw you as "resources", now they can't afford you and have to put you back in the pool. So be it.
If they'd been shitty about it, sure. But if you got paid for your time - fair trade.
Most programming jobs are remote. What's the alternative, exactly?
Where is this true?
Maybe in 2021...
Anyway, a few weeks after the axe dropped, I went to an industry conference (putting out the feelers for a new job, etc) and during the keynote he walked in. I waved, and he came and sat at the table with me. After the speech, we were chatting with the others around the table, and someone asked where I worked. I said something like "well, I'm between jobs. This guy just fired me <thumb jerk towards him>." They laughed, and he squirmed in his chair! But I didn't let him squirm too long, it really wasn't his fault.
That said, I already didn't like the CTO here, regardless of the layoffs. I kind of thought he was a blowhard who didn't really understand what he was talking about most of the time. I had no desire to be his friend.
I honestly don't think most people would do that, but I think there's a worry that "one bad actor is enough". Consequently, when I've been laid off in the past, usually my access to the computer (Slack, company email, and the computer itself) is cut off about a minute after I get the bad news.
That said, usually I get severance when I've been laid off, which is admittedly a small consolation, but a consolation all the same.
Still, I was pretty upset I was laid off, because it's just not a fun feeling. After the HR person explained the severance and COBRA stuff, I said something to the CTO like "I wish you all the best in trying to save this company, and for the sake of this conversation, let's just pretend I'm not lying". Then I hung up.
I wish I could feel guilty over that, but ultimately they were cutting off my livelihood, they can deal with momentary hurt feelings.