I'm looking at two CPU/GPU combo's with similar prices:
i7 2720QM & GTX 560M
i7 2670QM & GTX 570M
For either gaming or programming, i would take the 560Ti. Its the best bang for your buck between the 2 gpus, and if you can still squeeze out the 2720, go for it. What socket is a 2720? 1366? if thats the case, dont get the cpu yet. get some more money and upgrade to an i5 2500k and 1155 socket combo. 1366 is dead, and 1556 is soon to follow.