Want to write good dialogue? Then you’ve got to break the rules.
When you and I talk, we sometimes break the rules of grammar. (I know, it’s a shock, but it’s true.) To write good dialogue, it’s not so much that we are breaking the rules, per se, it’s just that there are rules for dialogue that trump grammatical dogma.