By treating it as a job and not a hobby. You don't need to make work your life. While older programmers I've met certainly are more likely to do it in their free time, I think we're beginning the transition of a newer generation brought up with the fact that it's a career. There is so much to learn that it barely benefits you to do extra in you free time unless you are job hunting.