I am currently enrolled in an information security class and have, thus far, been unimpressed by our assigned textbook. After doing a quick check at Amazon for other security texts, a common complaint amongst reviewers was that their books offer a cursory, entirely theoretical look at hacking and defense with no real world examples.
I'd like to find a text that discusses both the offensive and defensive aspects of security. As it stands, I have a very vague concept of how an actual attack is executed and how an attentive programmer could have avoided that security hole. Does anyone have any suggestions?