CPU for Programming and Photoshop

Solution
That's not very specific for your uses but an fx 6300 from AMD would probably suit you well if you're trying to stay around $160 for a CPU and motherboard.