The Audience Illusion and the Dataset
Most style guides treat code comments as a broadcast to an idealized reader—either an external API consumer or a textbook learner—ignoring how comments actually get written under pressure. In reality, a comment starts as an immediate cognitive release when a compiler rejects a missing semicolon or a state bug refuses to reproduce: the developer types a sharp remark to discharge frustration, which alters working memory load during debugging and leaves behind an artifact that later readers must parse without the original context. That creates the audience illusion : the writer aims at a moment of friction or a vague future reader, while subsequent maintainers inherit an uncalibrated note inside a living system.
To test whether private venting and ad-hoc notes scale into a predictable pattern across real engineering teams, I extracted 295,820 comments from 64 large GitHub repositories .…