Practice makes perfect. The more you code, the better you become.
From my experience, reading books is one thing but if you didn't make your hands dirty, it's nothing. My advice would be, if you are really new to programming go learn the basics and get your hands dirty ASAP.