Complex computer programs are remarkably like a novel.
Most writing, including novels and computer programs, has many modules. Programs have: Commands, subroutines, methods, applications, etc.
Novels have: Sentences, paragraphs, scenes, chapters, sequels, prequels, etc.
The goal of any module is to produce outputs from the inputs so that later modules have what they need. Programmers then run their code, see bugs and other problems, and rewrite to fix them. Authors read their story, see typos, POV violations and other problems, and rewrite to fix them.
I have used this relationship to help writers solve a number of problems.
Programming Stories in English
Download PDF