Here's the thing: I love programming, I've been working has a web dev since I was 18 (34 now), but I always loved design and creating desktop apps. And recently I've been learning Swift and mobile design.
This year, the startup I was working with went bankrupt, and I just dive into depression and self-confidence as a developer. I couldn't stop thinking to myself: "oh no, not again all those web dev interview processes and more JavaScript, PHP code..."
I got burnout of web dev, I just couldn't see myself doing it any longer. I hate JavaScript and the whole current ecosystem, it's a fucking mess, I don't want to have anything to do with it. PHP bores me to death, it's getting more and similar to Java syntax. Traditional web apps are dead. Everything is an API with a frontend-app, and that's fine, but I'm done.
So I decided to move, I'm now learning design, UX, Swift, iOS. And I'm loving it. The creativity and motivation spark are back! I feel so free, the web was a burden to me, a constant pressure to keep up with frameworks and trends.
So before you quit, think of moving to something different. Learn a new paradigm, try something different. Tired of C++, learn Ruby. Tired of Ruby: Learn C# and Unity 3D. Tired of the web? Try building an iOS TV app.