Being able to self-motivate is a larger problem. For most people this is a common problem. Sometimes you don’t do them because they’re fun in the present, but because they will be beneficial in the long run.
how can I gain my motivation to code back because it is stressful that wanting to do something but can’t doing it
Well that sounds like a different problem. To me that sounds like being frustrated with not being as good as you want to be and/or that that path is more difficult than you expected. I don’t know what to say - most things worth doing take a lot of work. That’s what makes them worth doing - they’re difficult so not everyone does them. Coding is hard - that is a good thing - it means good wages and job security once you get your foot in the door.
That all being said, I remember that I burned out a little somewhere in the JS section. I had to take a few weeks off to recharge my battery.
I might suggest taking a little time off and recharge your batteries. During that time you can think about why you want to learn coding. Is your goal worth the time and energy investment? That’s something everyone has to decide for themselves.
Thank you Kevin, I will try taking a week or two off
It is also possible that you have an emotional burnout. I advise you to take your learning slower and to take time. Rest. Relax.
I remember I didn’t want to code for about a month. Moreover, I felt disgusted. It was terrible. Clearing my head helped me. I read books, watched TV shows, spent time with friends. With time my wish to code returned.
Take a break. We are all people. Do not rush.
Thank you so much !!