I agree and disagree with the previous post.
I would say buy a book on programming and logic in general if you are new to any type of programming, and it sounds like you are. Then, of course, learn the language. After that there is only creativity and ideas.