That upgrade would be a large increase in performance, but it is a large investment. (CPU, MOBO, and possibly new OS)
While the old Phenom IIs still have some life in them, the i5 and i7 are on completely different levels of performance.
Since you plan on doing programming, I would recommend the i7, and the i5 if it were simply for gaming.