Software Design: Tidy First? • 1104 implied HN points • 20 Jan 26
- Telling a model to adopt a persona improves small-scale behaviors like clearer variable names and modular, test-driven code. It doesn’t reliably change the overall architecture on its own.
- Giving explicit design constraints (for example, prescribe the Composite pattern and small specialized classes) reliably drives macro-architecture and produces simpler, finer-grained designs. These structural prompts change high-level decisions even without a persona.
- Combining a persona with clear architectural constraints gives the best result—good style plus the right structure. Scaling this by generating many variants and selecting the lowest-cost successful implementations can further evolve better model-driven development.