Programming is actually hard af to do for any extended period of time (more than half an hour)
It requires such a specific mind that's drawn to all the detail oriented specific robotic parts of coding but almost all coders say coding is easy because the people whose mind don't fit coding already quit long ago
Yes I find coding hard and no I'm not coping
Actually programming being difficult might not be correct but more like programming is largely unbearable
Stick with it. Programming takes a long time to learn - and I don't mean the fundamentals; I mean there's so much to the job that just takes experience to pick up.
After a while, you can pick up a problem/feature, dive into a code base and instead of becoming lost, things just slide into place in your brain and you can focus on the problem/feature rather than having a whole bunch of non essential stuff stuck in your head.
And the secret to getting there is simply wanting to understand. Don't be satisfied with knowing that you fixed a problem, make sure you understand why your fix worked. Don't sweat the bigger picture, just focus on each task. And get good at debugging early, that helps soooo much.
The people who say coding is easy do it because it does become easy eventually and then eventually you forget how hard it was in the beginning. It's also a lot easier if you find it fun and can practice in an environment where you don't have crazy deadlines to meet and have a good teacher or mentor who is willing to help along the way.
All conventional wisdom and many teachers of mine have told me I should be brilliant at programming cause I'm smart, good at math, good with computers etc.
But I'm sloppy with details and can't think robotically.
We spend too much time focusing on the wrong skills in coding