Programming is not easy. If you're just starting with it, expect a long way through before achieving mastery. But there are things you can do to improve your skills and become a better coder immediately. But I must say, this only works if you have a real passion for learning otherwise don't even bother.
Here are some of my tips to become a better programmer. Give it about six months and you'll see a difference between now and then: