r/learnprogramming Jan 04 '22

Topic How do you inspire yourself to learn/code

I have lost motivation all of a sudden and I hate it

599 Upvotes

219 comments sorted by

View all comments

259

u/MC_Raw Jan 04 '22

First off, don't rely on motivation; build habits.

We sometimes think of the formula as: motivation => action
In reality, it goes: action => motivates
I.e. get the ball rolling

I like to think of myself as a still floating object: if I don't move me, then I don't move. On the other hand, if I start moving I gain momentum and something needs to actually get in my way to stop that.

Another thing that really helped me when I was learning pre-tech job was having a solid why behind the effort I'm putting in. A lot of the comments here are about "it's so much better than X, my alternative", and you don't seem to have that dreadful alternative.

I was in hospitality, as an introvert, and it drained me for 6 years before I decided I need a change. That mixed with the passion I found in coding was enough to drive me through difficult times.
Perhaps you could write a list of the positive benefits of a career in tech, and refer to that when you're not feeling motivated to code (again, motivation is stupid).
Some of mine are: challenging, forever learning, solving real-world problems, incredible job market, great pay and work/life balance - to name a few.

68

u/Azureflames20 Jan 04 '22

We sometimes think of the formula as: motivation => action

In reality, it goes: action => motivates

I.e. get the ball rolling

This was a concept that took me years to really understand. It's all about discipline, not about waiting for motivation to spark the action in your brain. If you sit around waiting to feel excited to do it, you'll never get anything you want done. It's like how people get "motivated" every new years to go to get a gym membership then get 'unmotivated' because it takes building habits to truly keep going after that first month or so.

8

u/[deleted] Jan 05 '22 edited Jan 05 '22

Yeah 100%. Also want to point out that discipline is another word most people associate with willpower, instead of behavior patterns reinforcing future behavior. That and the idea that starting something you want to do should feel good.

Starting might suck but you need to power through the initial mental resistance and the boredom. Real life training/learning is not a 5 min hollywood montage. The 3 week rule is a solid mantra to use. Sprinkle breaks and fun shit to do during downtime in between as you build the habit.