What you need to remember is that there’s a difference between lecturing about what you know and using it to enrich the story. The latter is good. The former is not.
Stephen King, On Writing: A Memoir of the Craft
writing-craft