Here's a theory — an ideal job is a job that fulfills your desire to code to a level in which you don't want to do any coding after work hours. There's so much challenging tasks and new things you learn right away by doing things you are paid for that you don't need to search for something new after work.
Maybe I'm just in a better mood now, or maybe it's some sort of "productivity momentum". It used to be that when I got home from work, the thought of looking at a computer screen made me feel sick. Now it's fine. It's not that I rush home and code every night (I still take the time to unwind and relax), but I actually feel like I can go home and code now whereas I just couldn't bring myself to do it before.