Yakread Rewrite: Building a More Maintainable Reader with Clojure and Biff

2025-07-30
Yakread Rewrite: Building a More Maintainable Reader with Clojure and Biff

The author is rewriting the Yakread reading app and open-sourcing it, while experimenting with new features for Biff, their Clojure web framework. To address maintainability issues in the original 10k line codebase, three main architectural approaches were adopted: 1. Implementing materialized views using XTDB and RocksDB for faster queries; 2. Separating application logic from side effects to create purer code and easier testing; 3. Using Pathom to build a reusable data access layer, improving maintainability and readability. These methods improve testability, observability, and maintainability, and bring new improvements to the Biff framework.

Development