Hobbies are kind of by definition wastes of time. That's what makes them different than work.
If you only want to learn programming for work then you obviously have a different perspective than people writing chess engines from scratch for fun instead of using an existing one, right?