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.
But in some occasional cases, the bridges you burn light up the way forward.
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?
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.
Most programming jobs are remote. What's the alternative, exactly?