
Software Engineering Daily Prettier and Opinionated Code Formatting with James Long
30 snips
Mar 19, 2026 James Long, design and product engineer who created Prettier and worked at Mozilla and Stripe. He talks about why opinionated, deterministic formatting matters. He explains how formatters differ from linters and why style debates get emotional. He discusses open source maintenance, performance tradeoffs, and why rewrites in Rust appeal for huge codebases.
AI Snips
Chapters
Transcript
Episode notes
Co-Creation And A Viral Tweet Sparked Prettier
- Christopher Chadeau quickly became a co-creator and major contributor after the first Prettier implementation, accelerating adoption.
- James Long credits a viral tweet and timing around complex JS patterns for Prettier's rapid growth in 2018.
JavaScript Requires Contextual Breaking Rules
- Prettier needed richer heuristics than Go's formatter because JavaScript has nested inline functions and context-dependent breaking.
- Simpler always-break strategies failed visually on real JS patterns, so Prettier implemented contextual breaking tied to print width.
Popular Tools Often Run On Limited Sponsor Funding
- Prettier operates as community-maintained open source without a business, so funding is limited and most contributors work part-time.
- James Long notes maintainers deserve more compensation and that donations shape activity levels over time.

