“When code and comments disagree, both are probably wrong.”

—  Norm Schryer

More Programming Pearls: Confessions of a Coder, Column 6: Bumper-Sticker Computer Science. http://www.softwarequotes.com/ShowQuotes.asp?ID=660&Name=Schryer%20,_Norm&Type=Q

Adopted from Wikiquote. Last update June 3, 2021. History

Help us to complete the source, original and additional information

Do you have more details about the quote "When code and comments disagree, both are probably wrong." by Norm Schryer?

Related quotes

Kent Beck photo

“When you feel the need to write a comment, first try to refactor the code so that any comment becomes superfluous.”

Kent Beck (1961) software engineer

Source: Refactoring: Improving the Design of Existing Code, 1999, p. 88

Martin Fowler photo

“When you feel the need to write a comment, first try to refactor the code so that any comment becomes superfluous.”

Martin Fowler (1963) British programmer

Source: Refactoring: Improving the Design of Existing Code, 1999, p. 88

Ayn Rand photo
Larry Wall photo

“Even if you aren't in doubt, consider the mental welfare of the person who has to maintain the code after you, and who will probably put parens in the wrong place.”

Larry Wall (1954) American computer programmer and author, creator of Perl

In the perl man page.
Documentation

Joachim von Ribbentrop photo

“Need one comment on that fool? He is not a foreign minister but a blind adherent of Hitler. He is also personally disagreeable and vain.”

Joachim von Ribbentrop (1893–1946) German general

Erhard Milch to Leon Goldensohn, March 13, 1946.

Newt Gingrich photo

“Alan Colmes: You're calling "appeasers" people who disagree with the Bush policy administration —
Gingrich: Look—
Colmes: — comparing them to those who enabled Hitler?
Gingrich: Yes.
Colmes: That's an astounding comment —
Gingrich: What's your — what's your — why? Why is it astounding?
Colmes: — that's a very insulting comment —
Gingrich: It's not an insulting comment.”

Newt Gingrich (1943) Professor, Speaker of the United States House of Representatives

Hannity & Colmes
Fox News
2006-09-01
2006-09-05
Gingrich: "It's not an insult" to compare Bush administration critics "to those who enabled Hitler"
Media Matters for America
http://mediamatters.org/research/200609050002
2011-03-30
2000s

Lionel Shriver photo
Linus Torvalds photo

“I was 21 at the time, so I was young, but I had already programmed for half my life, basically. And every project before that had been completely personal and it was a revelation when people just started commenting, started giving feedback on your code. And even before they started giving code back, that was, I think, one of the big moments where I said, "I love other people!"”

Linus Torvalds (1969) Finnish-American software engineer and hacker

Don't get me wrong -- I'm actually not a people person.
Torvalds, Linus, 2016-02-17, <nowiki>Linus Torvalds: The mind behind Linux</nowiki>, 2016-04-08 http://www.ted.com/talks/linus_torvalds_the_mind_behind_linux/,
2010s, 2016

Related topics