Its nice when you can buy $60/bushel wheat. Its not so nice when your dealer cuts you off.
The extra $40/bushel you pay to produce in-house, thats your insurance policy against having your supplies cut off. In a world where geopolitical lines are shifting, it's a matter of national security and optionality to have your own food production capacity. Risk management.
Nationalism makes you poor.
Your solution is the short-term one, maybe not even that. In the long run, your community is much better off producing what it does best and trading with others for what they produce best, rather than everyone trying to do everything at some mediocre level.
Your solution is like Microsoft building its own furniture and cars and flying its own planes, rather than making software and buying the furniture, cars, and air travel from those who are expert in it.
Let's use your example, Microsoft. Companies have different incentives than communities or countries, but I think we can make this work.
For many years, Microsoft only sold software, and let others who were experts in hardware make the hardware and install microsoft on it. Later, they realised that it was strategically important to manufacture their own consumer hardware, and now you have the Surface lineup. Maybe in the near future, they will decide they need to start manufacturing their own chips. If they do that, it's not going to be cheap, especially in the short term. But it might be what they need to do to keep their dominant position in the market.
What a bizarre things to say. First of all, are you an economist who can comment on other people's sophistication? Second, who cares? The merits are what matters, and you agree it's "broady speaking, correct".
The world is three meals away from anarchy, being dependent on the caprice of global markets for food is a great recipe for getting regime-changed by starving people.
The evidence shows that vastly overstates the risks: It hasn't happened or even come close to happening yet. In fact, name any place that has turned anarachic due to food shortages.
The modern global markets are not capricious, but the most efficient, effective distributors of resources in the history of the world.
Though they were able to find alternative foreign sources to make up the difference and redevelop domestic production.
“Certain countries” are well known for subsidizing domestic grain production and dumping it on overseas markets which ends up hurting the local farmers as they can’t compete on prices. Given enough time these countries become totally dependent on the imported grains and their entire farming industry goes away.
You make the choice on if you’re comfortable depending entirely on foreign production of foodstuffs.
—edit—
Actually, you don’t get to make the choice…
Every country in the world is dependent on trade, which is saves a lot of money over self-sufficiency. North Korea is the only country that tries self-sufficiency.
If it costs you $100/bushel to produce wheat and you can buy it for $60/bushel (I'm fabricating numbers), why produce it?