Solving a particular computer problem at a given time,requires too much concentration,otherwise,you will end up with all your efforts to solve any problem useless,as even mis-typing a single character will result in having a program written for, let say a month,a garbage program. Hence your goals will not be achieved,time wasted and more other negative outcomes.
Time allotted for writing a particular program, can be compared to normal office working hours a day. You finish your work in allotted hours per day,then off you go, anywhere,any time,do anything you want until the next working day. You can't do anything unofficial during working hours, otherwise, you will mix-up things. In programming,you allot time for accomplishing a program writing project, once you finish your project in timely manner, IT IS GOOD, off you go anywhere,anytime,do anything you want until you get another programming project. The difference is the time to accomplish a given work: hours for normal office routine and program dependent for programmers.
Sometimes making a computer do something for you in accordance to solving a particular problem is more funny than having a Girlfriend. Girlfriends can ask for money,seize control of a man as she needs occasional dating with that man, unnecessary phone calls,all of which can interfere with male programmer's concentration. So waiting until you accomplish your goals is better ,then other things will follow later.
If a male programmer do have affairs with a girlfriend anytime, should he publish this affair to the public for everyone to know?