Like the others already said it's important to have life outside programming. That sounds obvious and personally for me that's easy to do if things are going well, you are not struggling, banging your head against challenges or having a hard time getting things done before deadlines. But in my own experience I know if these things do start happening it's even more important to take time off. I'm much more productive if I work let's say 40-50 hours a week then 60-70+ hours. Sure in one week I might get more done but I have to stop working out, cancel on a friend etc. and that starts to take it's toll eventually. For me that's the key to not burning out.
And the times I solved programming challenges when I'm not programming or not even actively thinking about programming, it's too many to count.
Like the others already said it's important to have life outside programming. That sounds obvious and personally for me that's easy to do if things are going well, you are not struggling, banging your head against challenges or having a hard time getting things done before deadlines. But in my own experience I know if these things do start happening it's even more important to take time off. I'm much more productive if I work let's say 40-50 hours a week then 60-70+ hours. Sure in one week I might get more done but I have to stop working out, cancel on a friend etc. and that starts to take it's toll eventually. For me that's the key to not burning out.
And the times I solved programming challenges when I'm not programming or not even actively thinking about programming, it's too many to count.