If you want to offer tips on writing detective stories, Raymond Chandler wrote an excellent essay on the subject called The Simple Art of Murder (published in the short story collection with the same title as the essay).