As with all other aspects of fiction, the key to writing good dialogue is honesty.