Practicing a musical instrument, falling while snowboarding, getting up early to be on the mountain for the sunrise.
The original poster is asking for ideas to help build enough discipline to power through the tough spots of a learning curve to get to where the proficiency pays off in enjoyment or other benefits.
We have so many easy diversions, that it's easy to train one's self to not do hard things.
I can study/practice/work for a future benefit, or I can play a video game (or browse hn) for fun now!
Training yourself to do hard things is harder. Maintaining a vision of the goal, getting satisfaction from expending effort, having empathy for your future self, denying yourself of immediate distractions/pleasures can each play a role.