Honestly, Somalia in particular mostly fucked up by betting on the wrong horse and proceeding to also piss off said horse. The horse being the USSR. We would probably be a lot better off today if Afweyn had the foresight to bet on the Americans like Khaleejis did. But who knows, they might have eventually fucked us over anyway like they have with most of their Arab republic satrapies. But most of those niggas like Saddam or Gaddafi were asking for it and making too many antagonistic plays against the West.
The highlighted paragraphs speaks to the issue of the most vexing thing about the 3rd world and our propensity to inflate our own strength, standing and importance; we routinely miscalculate and the results are always disastrous.
I came across content showing that Siad Barre actually appealed to the United States via the Arab States and attended a Saudi sponsored meeting in Taiz in order to extricate himself from the Soviets for the purposes of acquiring Western arms.
I agree with you:
Myopic men like Gaddafi committed folly after folly and intentionally antagonised powers that were far out of his league; he inexplicably supported the Basque separatists and the IRA when his Nation wasn't even a middling power.
It's almost as though 3rd world despots have a pathological desire to fall right into readily made hostile propaganda narratives; they do this with their laughable displays of goose-stepping soldiers and irrational geopolitical manoeuvres.
Even nuclear armed, significantly more powerful Nations like Russia and China bided their time before adopting more assertive political and military positions against the West.