Juggling work and personal projects makes you less effective at both. To protect your time and avoid distraction, use time-boxing.
Teachers can help students build their capacity to stay on task by ensuring that they have a clear path to start working, reasons to continue, and support when they lose focus.