I used to have fun at high school. I would write trivial programs to carry out my little tasks like math homeworks etc.
Now I'm a junior at college, and it is not fun anymore. I still happen to be finding "solving a problem" joyful, but not coding the solution I've found.
Have you ever felt the same? Have you been able to overcome it and taste *that feeling* when your code runs?
The problem is programming was never fun to begin with. The answer I've found is GNU/drugs or as I've recently taken to calling them "my little helpers."
>>22-san never mentioned the psychedelics, could've been talking about pretty much anything. I figured he was talking about some of these new designer drug thingies programmers seemed to be attracted to. http://en.wikipedia.org/wiki/Nootropic
Yeah, I wasn't kidding on the drugs. Psychedelics are amazing so that's a good choice. Just don't turn into one of those loopy shit-sprouting idiots. Keep things in perspective and use it as a tool.
You might want to try euphoric stimulants like cocaine. There is a reason why Sigmund Freud was so productive. To a lesser extent Ritalin and notaly Dexadrine. Surprisingly what a mood lift can do to your productivity. Who knows, you'll be writing that 1000 line business logic in no time!
Note: That last line is unmotivating. I've always found starting a new project can be quite fun (for a little while.)