I have been programming for 22 years. There have been times where i hated it and wanted to get rid of my computers. However, presently I'm really happy working as a programmer. The key for me is curiosity. How do things work? How should i solve this problem? If I'm not curious then I'm not having fun, and if I'm not having fun I'm not happy. My job at present doesn't feel like a job because I'm learning all about Hadoop and solving new and interesting problems with it. I'm sure I'll have down periods again, but i know i can find ways to regain my curiosity by switching tech stack or problem domain and get through those rough patches.