News for hackers. Stuff that matters.

Ask HN: How to get motivated to code?

Hello HN,

I haven't touched code in a few months. In the beginning, it was because I got burned out. I realized I needed to take a break so I did -- had a little vacation away from home for a bit. I'm back now but I still can't get myself to write even a line of code. How do I get started? I need that initial motivation. How do you guys do it?

( 8 comments | 3 points | on HN )
Re:Ask HN: How to get motivated to code? by nartz on Friday August 01, 2014 @11:55PM (#8123944)
Start by finding something you want to code. Then think about it for a few days, and let the pressure build up. Then one day, instead of turning on the tv or going to HN, remove distractions and commit to 10 minutes of coding with no distractions. If you're like me, you'll start working for an hour or so before you get interrupted, but by that time you'll be back in the groove.
Re:Ask HN: How to get motivated to code? by ollyfg on Friday August 01, 2014 @10:54PM (#8123848)
For me, I think for a while until I find something that I really want to make, or something that bugs me that I can fix, and even if it's something really very small, that motivation powers my first steps back into coding. It doesn't matter if someone's done it before, just do it your way.
Re:Ask HN: How to get motivated to code? by wydyl on Saturday August 02, 2014 @09:27AM (#8124863)
When I get burned out with what I'm working on, I just look for whatever fascinating is happening around the tech space, and try to implement a simple yet crazy something. I might not finish it but kind of gets me going.
Re:Ask HN: How to get motivated to code? by blueflow on Saturday August 02, 2014 @08:15AM (#8124737)
When im unmotivated, i just open some file, look around my code and somewhere i find something i really, really want to change/fix (i have tons of unfinished private projects). And thats my 'initial motivation'
Re:Ask HN: How to get motivated to code? by bemmu on Friday August 01, 2014 @11:22PM (#8123896)
Make just some tiny edit or write one line of code. Tell yourself that you're just going to do this one line. It gets you over the initial resistance and usually I end up writing a lot more than I intended at first.
Re:Ask HN: How to get motivated to code? by alphagenerator on Saturday August 02, 2014 @12:00AM (#8123955)
The code doesn't matter. You have to want the end product. The reasons for wanting it are personal, but you have to want it.
Re:Ask HN: How to get motivated to code? by notduncansmith on Saturday August 02, 2014 @02:44AM (#8124229)
This. Code is a (rather enjoyable for many people) means to an end.
Re:Ask HN: How to get motivated to code? by staunch on Saturday August 02, 2014 @04:56AM (#8124448)
Start with something easy and fun. Don't worry at all what it is. Give yourself time to build up momentum again.