Ideal iMac For programming (and some photoshop)
Basically every iMac shipping today has plenty of power to handle your developing and photo-editing needs. When it comes to lifespan, there is virtually little to no difference. Finally, unless you're working with intense 3D graphics, you should be absolutely fine with the base model.