>>630846Graduate student here. If you are buying it for classes, you should focus on mass, battery life and keyboard quality.
You will be lugging it around for most of the working day, so you will feel every gram.
Battery life should be long enough to cover all the lectures in a day. Or longer, if you forget to charge it overnight.
Since you will be programming, make sure the keyboard is not unpleasant to use.
The processor speed is not that important, at least in my experience. Some IDEs eat RAM like candy (Eclipse), so you should make sure you have enough of it. Also, a SSD is a must-have, it makes compiling things MUCH faster. On large projects processor speed does make compiling faster, but you probably won't have such huge programs in your classes; also, if you don't have enough RAM, compiling will be slow no matter what processor you put in there.