· 1 min read
Why writers should learn a little code
A short note on where narrative craft and software systems meet.
This is a sample post. You can edit or delete it from the admin panel at /admin/.
Structure is just plot by another name
Writing a novel means arranging chapters, cutting repetition and keeping the flow clean. Engineering is the same discipline, only the audience is both human and machine.
Three things code taught me
- Anything written twice should be written once.
- Keep old drafts; versions are a project’s memory.
- Ship early, edit later.
Writing is rewriting — which is exactly what refactoring is.
Sample snippet:
def word_count(text: str) -> int:
return len([w for w in text.split() if w.strip()])