Comment Answering your question (Score 1) 516
"..how do I get back the enjoyment I used to have writing code?"
What do you like? Code something to do more of that.
I used to like music, so I wrote a music DB similar to scrobbler.
I like tech news now, so I wrote a "better" site to get it to me faster.
I watch a lot of tv, and I got annoyed when the daily show was a repeat. .
Are you a Sneakerhead? Write a db for your shoes.
Find anything, and write something to make that thing better.