I know you are looking for books, but from my experience "on the spot" learning is the best way to get to grips with coding. If you already have a basic knowledge, have a play around with coding and if you need to know how to do something, then just Google it.