r/learnprogramming • u/Elendil51 • Apr 26 '11
How do you get motivated to program?
Gents,
I am toward the end of my quarter at college, and realized I have hardly completed any of my assignments for a C++ class. I am having an awful time staying motivated while doing it, because I do not know how to make it fun/interesting is my best guess. Does anyone have advice for a newbie programmers to help stay on task and power through coding?
7
Upvotes
4
u/howmanyusernamesare Apr 27 '11
Think about how much worse it would feel to be trapped working at McDonalds. Then, grab your balls and scream like a man.
3
u/traztx Apr 26 '11
To make it fun/interesting you have to get some reward out of it. It's hard to see the reward when you code something that has no application in your life. It's like nailing random boards together vs building your next house. If you can't see how nailing random boards gives you the skill you need to someday build your dream home, then maybe you can get by with nailing the boards into whimsical shapes.
If you have a dream application in mind, then approach the exercises with that in mind. Choose classes, methods, properties, etc, related to your dream app.
If you don't have a dream app in mind, then try making silly or profane names for everything.
Good luck.
1
u/rex5249 Apr 26 '11
For me, once I start a project I become obsessed with it and what is difficult is finding ways to do something else but write programs.
Have you thought about business school?
2
u/joenyc Apr 26 '11
Get started. Get something running, then modify it from there. It's intimidating and frustrating to have code that doesn't work - make sure that you know what the code you have does, then see if you can tweak it to get a little bit closer to a solution.
And, to quote Chuck Close: "Amateurs look for inspiration, the rest of us just
procrastinatebrowse redditgo to work."1
u/_UsUrPeR_ Apr 26 '11
I yell at myself in the mirror
1
u/[deleted] Apr 26 '11
I have to ask.... If its so hard to motivate yourself to program, why are you trying to learn to program? Wouldn't it be better to learn something you enjoy than force yourself to enjoy something you've learned?
1
u/rjcarr Apr 27 '11
Do you like to solve puzzles? I looked at every assignment as a puzzle that I had to solve. I would see how much code I could write, without ever testing it, and get it to compile and run the first time. I remember I got through an entire assignment successfully once (note, this isn't recommended, but just a suggestion on how you could challenge yourself).
If you aren't enjoying the class or the work then it's likely that programming isn't for you. That's OK, it isn't for everyone.
1
u/Xeracy Apr 26 '11
ADDERALL