I wish it was this easy. But mental health is as complex and multifaceted as our brain is. There can be more than one reason why a once happy engineer is now struggling to complete basic tasks, and they are often hard to find and explain or to relate to simple explanations like these (which is why more and more people are turning to therapy for answers).
You raise good questions, but thousands more could be asked: Are you taking care of your foundations? Sleeping enough? Eating nutritious food? Do you have any bad habits or trauma that you haven't even acknowledged to yourself? Is your work environment healthy? What things aren't healthy that you've normalised? Are you seeing enough friendly people in your day to day life? And so on.
My point is that there are rarely easy answers to easy questions such as these, so "bucking up" can be seen as either great advice or irresponsible and insensitive, and it doesn't necessarely apply to "most of y'all". So maybe you need to buck up, but also don't be frustrated if you don't. Maybe the solution is elsewhere.
Not the author, but one way you could mitigate some of the LLMs problems while learning (authoritatively stating wrong facts, reward hacking, ...) is to have it give you testable code exercises to teach you facts. So you can get the benefits of the LLM AND deterministically verify its claims. I've been trying this lately and recovering some of the lost joy of learning CS nowadays.
Lately I've been thinking about this a lot. I've slightly shifted my use of Claude from implementing tool to scaffold generator for me to actually do the hard parts. It's frustrating at first, because the impulse always is "I could get Claude to do this in minutes", but that's just the brain trying to spare some energy.
I've found that it's much more rewarding to use LLMs as an aid to deep work instead of a substitute for it, and it's even helped me feel more optimistic about my place in this field after a couple of days of getting used to the mental friction again.
You raise good questions, but thousands more could be asked: Are you taking care of your foundations? Sleeping enough? Eating nutritious food? Do you have any bad habits or trauma that you haven't even acknowledged to yourself? Is your work environment healthy? What things aren't healthy that you've normalised? Are you seeing enough friendly people in your day to day life? And so on.
My point is that there are rarely easy answers to easy questions such as these, so "bucking up" can be seen as either great advice or irresponsible and insensitive, and it doesn't necessarely apply to "most of y'all". So maybe you need to buck up, but also don't be frustrated if you don't. Maybe the solution is elsewhere.