Not true. If you code and solve problems at work, and fail spectacularly, you don't want to try and solve more problems. The brain is very good at generalizing stimuli: having your code compile is like a programmer's own little Skinner box. So if you can find problems in other domains and solve them, you'll still enjoy programming and solving problems.
I do agree that you need some successes at work, though. If you were doing really well in private, but everything at work was going wrong that would cause problems.
I do agree that you need some successes at work, though. If you were doing really well in private, but everything at work was going wrong that would cause problems.