'A good and serious novelist'
‘I love structure in a novel and the detective story is probably the most structured of popular fiction. Some would say that it is the most artificial, but then all fiction is artificial, a careful rearrangement by selection of the writer's internal life in a form designed to make it accessible and attractive to a reader. The construction of a detective story might be formulaic; the writing need not be. And I was setting out, I remember, with high artistic ambitions. I didn't expect to make a fortune, but I did hope one day to be regarded as a good and serious novelist. It seemed to me, as it has to others, that there can be no better apprenticeship for an aspiring novelist than a classical detective story with its technical problems of balancing a credible mystery with believable characters and a setting which both complements and integrates the action. And I may have needed to write detective fiction for the same reasons as aficionados enjoy the genre: the catharsis of carefully controlled terror, the bringing of order out of disorder, the reassurance that we live in a comprehensible and moral universe and that, although we may not achieve justice, we can at least achieve an explanation and a solution.'
P D James writing about detective fiction in her book 1999 book, Time to Be in Earnest: A Fragment of Autobiography, https://www.faber.co.uk/blog/construction-detective-story-might-formulaic-writing-need/ which can be found on the wonderful new website dedicated to P D James launched by Faber & Faber this week.