Nationalism is mostly pretty evil IMHO, but nation states are actually providing a crucial role as a check on the power of corporations, the boards of which would otherwise be defacto global lords. The tension of diplomacy between nation states is critical to keeping everyone honest. My biggest fear for the future of the planet is a consolidated world government with real power (as opposed to the United Nations) because I think serious corruption would be unavoidable over time.