Don't worry if you struggle, coding is challenging.
Coding is not easy. If it were, everyone should be doing it. It doesn't matter how slowly you go so long as you do not stop. A senior developer is once a junior developer and code newbie who never gave up.
Perseverance is the key to success
This is VERY important.
Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.
Learning to code on a very basic level can take years and it takes many more to become prolific. Keep learning coding, and reading every day. Spend at least an hour a day learning to code. Make it a part of your life and habits.
Make friends and find mentors
The coding road is hard, and it's almost impossible to do it alone.
Find people you like and get together with them. The trick to do this is going to gatherings, aimed primarily at developers.
Meeting new people might be out of your comfort zone, but you'd be surprised how friendly the developer community is.
Study SMARTER, not HARDER
Having hobbies outside of coding will help you a lot, not only in your career but in your personal life as well.
Whenever you feel frustrated and tired of coding, go do another activity you enjoy, and afterwards you will feel super refreshed and ready to go back at it.
Master the day
There's an ample of information out there, and it's impossible to remember it all. Take it one day at a time. Slow down and concentrate. Think about the problem, think about the approaches to coding, and then start coding.
The hardest part of coding is thinking deeply about the problem and planning how to solve it. Good planning and thinking will shave off years and save you quite a bit of time.
Practice
Practice is what will help you grow your understanding of programming. Knowing the rules and applying the rules is fundamentally different.
You can read as much as you want, but you still need to put in the hours of exercises to fully understand how to code.
The best programmers are not the ones with the most "talent" but the ones that solve most programming problems.
Hope you'll find post interesting. Don't forget to put a comment and react to my post.