Back to browse
Software Engineer to Novelist: Writing a Book Like Coding

Software Engineer to Novelist: Writing a Book Like Coding

by TeaVMFan·May 3, 2026·22 points·11 comments

AI Analysis

●●SolidCozyNiche Gem

HTML-to-EPUB pipeline with TBD tracking is a clever workflow for technical writers.

Strengths
  • Using HTML as source control for chapters allows standard diffing and versioning.
  • Automated EPublish tool parses TBD annotations to generate completion status reports.
  • Shell script automation for Calibre ensures repeatable PDF builds for print editions.
Weaknesses
  • Relies heavily on Emacs and command-line knowledge, limiting accessibility for general writers.
  • EPublish tool appears to be a personal script rather than a maintained open-source project.
Category
Target Audience

Software engineers who want to write books

Similar To

Pandoc · GitBook · Scrivener

Post Description

I just published my first book, Means and Motive. ( https://www.amazon.com/dp/B0GYCZJVGX )

As a software engineer, I approached writing like a software project. I used familiar tools (Emacs and HTML) for the primary writing.

I built my own tool (EPublish) to transform the HTML manuscript into an .epub file, the source for the ebook version. And I wrote shell scripts to reliably and repeatably transform the .epub version into PDF files for the printed editions.

I wrote 'design' and 'architecture' docs, describing the world, key actors, and timelines. I kept a task list of chapters and key scenes that needed to be written, in priority order. Along the way, I kept my files version-controlled so I could see the progress of the novel and edit mercilessly, without worrying about keeping old text around in backup files should I want it back for some reason.

If you've thought about writing a book, I highly recommend it. There are many similarities to the software engineering process. You'll also gain a newfound appreciation of the design, layout, and typesetting world, exactly how much work goes into each book you read.

Similar Projects