I've been a professional programmer for many many years (20 years) and now I've lost interest, at the moment I have trouble even knocking out a few 100 lines of simple stuff. It will take me 3-4 days rather than 30-40minsAnyone have any tips how to get your interest back?Since I was a kid I've pretty much been into programming/coding as long as I was awake. I used to finish work and hit the interwebs for new stuff until bed. Now I am lucky to make LOC counts at work seem reasonable.EDITThanks everyone - some great suggestions - a lot I didnt think of - although not looking forward to the exercise I probably need it.
Ideas to get you programming mojo back?
motivation
Nobody here knows what will inspire you better than you do, but here are a few ideas:Switch projects. Programming is like writing -- it's a means to an end, not so much an end in itself. If you don't believe in the value of what you're doing, you won't feel that there's much point in doing it. So look for a different project at work that you can switch to, something you can get excited about. If it's not possible to switch completely, look for an additional project that you can spend at least some time on.Try learning something new. Challenge yourself by trying a project in your own time using a set of tools that are very different from what you've been doing for the last n years. You could try your hand at a functional programming language, or build a web site, or build a project based on Amazon's EC2 or Google's App Engine, or try developing an app for Android or iOS, or pick up an Arduino and try some embedded programming, or corner one of the mainframe guys at work and ask to learn a little COBOL, or...Take a vacation. When was the last time you took two or three consecutive weeks off? Consider making it a real vacation, where you unplug your computer and don't touch it for the duration. Don't even read about computers. Do some landscaping around your house, finish your basement, do an in-depth study of cupcakes, take up photography, spend some time with your family, travel... anything that doesn't involve typing. Sometimes you need a break from something before you can enjoy it again.Go back to school. Realize that you don't have to be a programmer forever, especially if you don't find it rewarding. This could be a good time to start thinking about what you want to do for your next act. Or, after a semester of learning about EBITDA and indirect labor costs, you might suddenly realize that you love, love, love programming after all.Start exercising. It can be hard for desk jockeys like us to believe, but many people swear that exercising gives you more energy, which might help you feel a little more motivated. It can also serve as either a mental break from work, or as a time to think deeply.Talk to your doctor. Diminished motivation could be a sign of depression or other illness. And even if that's not the problem, your doc might be able to suggest some changes that'll have you feeling a lot better.Make sure you understand how the work you're doing fits into the bigger picture. Sometimes it's hard to see the forest for the trees, and a talk with your manager about how your work impacts the bottom line could provide some of the motivation that'll help you get back on track.