Independent Developer Tw93: In the AI Era, What Is Truly Reusable Across Platforms Is Not Code, But Rules
Shao Shu Pai author Tw93 discovered while developing the Windows version of Mole that less than 20% of its over 100,000 lines of Swift code could be reused outside macOS frameworks, leading him to rewrite it almost entirely from scratch using C# and WinUI 3. He proposes a key judgment: AI has significantly lowered the efficiency costs of native development for each platform; the cross-platform synchronization layer worth maintaining is no longer code abstraction, but design tokens, copywriting, and rules established after encountering pitfalls.
Tw93 is an author at Shao Shu Pai (sspai), having developed several desktop tools including Mole, Kaku, Pake, and MiaoYan. In November 2026, he published a long-form article detailing his entire process of developing Windows software on a Mac. His core conclusion is that in today's era where AI writing code is no longer a bottleneck, what truly needs to be reused in cross-platform development is not code, but rules.
This judgment stems from a specific engineering fact. The Mac version of Mole was written in Swift and SwiftUI, comprising over 100,000 lines of code. Tw93 initially intended to reuse as much of this code as possible for the Windows version. However, after analyzing it with AI, he found that less than 20% of the code could function independently of macOS system frameworks like AppKit and SwiftUI. The remaining logic heavily relied on macOS-unique path rules such as ~/Library, making it largely unusable. Consequently, the Windows version was written almost entirely from scratch.
Since the code itself could not be reused, how did he maintain consistency between the two platforms? Tw93's approach was to shift the synchronization layer upward to design rules and decision records. He took the design tokens—colors, font sizes, spacing, and corner radii—written in Swift for the Mac version and used a script to directly generate them as XAML resources for Windows. Copywriting in 11 languages was converted from the Mac's multi-language file format to the Windows format. Even the runner animation in the menu bar was synchronized using the same script. On the functional level, he maintained a SYNC.md file as a reconciliation ledger. For every new feature added or security issue fixed in the Mac version, the Windows side clearly marked which items were implemented, which were intentionally different, which were inapplicable, and why those judgments were made. Each synchronization also recorded the corresponding Mac commit to prevent the two versions from diverging if the AI went off track.