I have a specific website/app/project that I've been contemplating/envisioning/intending to get started on for about a year now. I'd really like to go from the 'thinking' stage to the 'doing' stage ASAP. I don't want a book that's all theory and best practices because it takes too long for them to get around to applying the knowledge. Conversely, I don't want a book that shows me how to do stuff by having me build some webapp from start to finish -- I may learn a lot, but in the end, I spent all that time and ended up with an app I don't care about, while my own app is no closer to fruition. To me, the ideal book would read something like...

"Your webapp is nothing without users, so let's start with a basic registration form... but first, we'll need a database to store our users and their data..."
. . .
"Of course, any time we prompt a user for input, we expose ourselves to maliciousness through SQL injections, etc. so let,s go back and modify our basic registration form..."
. . .
"And by the way, since we'll be accepting user input throughout the site/app, let's take that input sanitization code and put it in a function so we can easily reuse it later..."

In other words, I like examples (and I'd like to have lots of them - covering all manner of common functionality) but I'd like them to be presented in a fairly general manner so I can choose which ones are right for me and customize them to fit my app. And I don't mind redoing something multiple times in order to apply newly learned concepts - at least I'll be making progress.
Sorry for the long post. (I thought the examples might best illustrate what I'm looking for.) Thanks so much for reading and thanks in advance for your input and suggestions.