According to Thomas Friedman, the New York Times columnist, Barack Obama’s prescription for U.S. foreign policy is “Don’t do stupid stuff.” As a guide to the conduct of foreign policy in the Middle East, that was evidently not enough.