Hanlon's razor
Hanlon's razor is an aphorism expressed in various ways including "never assume bad intentions when assuming stupidity is enough", "never assume malice when stupidity will suffice", and "never attribute to malice that which is adequately explained by stupidity". It recommends a way of eliminating unlikely explanations for a phenomenon (a philosophical razor).
As an eponymous law, it may have been named after Robert J. Hanlon. There are also earlier sayings that convey the same idea dating back at least as far as Goethe in 1774.
Origins and etymology
Inspired by Occam's razor, the aphorism was popularized in this form and under this name by the Jargon File, a glossary of computer programmer slang. In 1990, it appeared in the Jargon File described as a "'murphyism' parallel to Occam's Razor".
Later that same year, the Jargon File editors noted lack of knowledge about the term's derivation and the existence of a similar epigram by William James. In 1996, the Jargon File entry on Hanlon's Razor noted the existence of a similar quotation in Robert A. Heinlein's short story "Logic of Empire" (1941), with speculation that Hanlon's Razor might be a corruption of "Heinlein's Razor". (Heinlein termed it "the devil" theory of sociology, and wrote, "You have attributed conditions to villainy that simply result from stupidity".)