You can only really think like a programmer by programming. Just keep at it, and you'll get better at it.
I have heard that going through SICP can help you better wrap your head around functional decomposition and that sort of thing, but I haven't gone through yet it myself.