I wonder if it could also have something to do with the work environment?
Were you happy programming when you were at a previous job and now it just doesn't feel the same as it used to?