When you feel like that, then it's time to step away from programming.
Everyone's situations are different. In my case, I was getting impatient learning React and spend too much on my computer than I should. Then one day, I've lost the mere thought of opening a text editor makes my body feel tired. When I discussed with everyone on Twitter, it turns I was experiencing early symptoms of burnout and advised me to take a break which I did and felt better than before.
So what you can do is:
Go out and take a walk (when it's safe to do so given the globe pandemic)
Do fun activities that make you relaxed - it can be painting, gaming, TV shows and movies, reading books, etc.
Do some exercises - If you don't like doing pushups, pullups, etc., at least do a lot of stretching and walking around the house. Moving your body is better than not moving at all.
When you take a break, you'd slowly, but surely started getting interested in programming again.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When you feel like that, then it's time to step away from programming.
Everyone's situations are different. In my case, I was getting impatient learning React and spend too much on my computer than I should. Then one day, I've lost the mere thought of opening a text editor makes my body feel tired. When I discussed with everyone on Twitter, it turns I was experiencing early symptoms of burnout and advised me to take a break which I did and felt better than before.
So what you can do is:
When you take a break, you'd slowly, but surely started getting interested in programming again.