Programmer's job isn't writing code - it's solving customer problems. And it's unlikely that customers will stop having (and creating new) problems.
"No job" is only a problem for someone who refuses to learn and move on. It's similar to having a child - first you have a job as a technician, then teacher, then mentor and lastly you are out of job until your customer makes you grandkids to care for, or something. ;-)