If you're a power plant owner and want to maximize energy output, setting the plant on fire is certainly one way to release a lot of energy very quickly.
"your work" as in work that you did, not work that you own. a picasso painting is still a picasso painting even in a private collection. if your next line is "coding is just work and not art" then please tone down the capitalism.
if the "boss is always right or quit" thing is right then wouldn't hiring managers also have a problem if your boss publicly insults your work? you're doomed either way, self-defense or not! but so far what you're saying does not seem to hold true - replies to fired engineers are full of kindness and job offers.
at some point folks at twitter will realize that only masochists who enjoy having their reputation ruined by their boss in public are welcome at the company
dude that's just "taking it" - either you lick the boots of your boss or you resign
but then if you don't try to push for anything at work (aka doing anything more than what's expected of your role) that's quiet quitting
you just can't win
also elon musk owned twitter for like 3 weeks how the hell was that guy supposed to know that as a mere mortal you're supposed to just let elon musk shit on your work and ruin your reputation in public then fire you anyway after you stay silent
if every choice makes you bad then it's at least nice to get fired publicly so you can line up a new job in replies to the tweet that got you fired
According to some people here you're just supposed to take it when your boss shits on your work and firing you for any push back at all is entirely justified.