IMO they are both essential but they have to be in the right amounts as there are varying degrees in both. Too much pragmatism in our laws and they become overbearing and tyrannical. Same goes for idealogy...only it has an additional problem of also being too lax. And of course pragmatism can be based on an ideology and visa versa. I like the middle ground myself which probably is why I am an independent.