You can't understand the Electoral College unless you know what federalism is, and federalism is one of these terms that, in many cases, means the exact opposite of the word as it's currently applied.
C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.