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

—  Kent Beck

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

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 you feel the need to write a comment, first try to refactor the code so that any comment becomes superfluous." by Kent Beck?
Kent Beck photo
Kent Beck 13
software engineer 1961

Related quotes

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

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

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

Martin Fowler photo
Kent Beck photo
Koenraad Elst photo

“It is quite bizarre that scholars trying to prove a point discredit their own case by using a proven forgery without any comment.”

Koenraad Elst (1959) orientalist, writer

Source: 2000s, Ayodhya: The Case Against the Temple (2002)

Roger Scruton photo

“Kant's position is extremely subtle — so subtle, indeed, that no commentator seems to agree with any other as to what it is.”

Roger Scruton (1944–2020) English philosopher

"Some More -isms" (p. 25)
Modern Philosophy (1995)

Eckhart Tolle photo

“Can you look without the voice in your head commenting, drawing conclusions, comparing, or trying to figure something out?”

Eckhart Tolle (1948) German writer

Source: A New Earth: Awakening to Your Life's Purpose

Martha Beall Mitchell photo

“I don't believe in that "no comment" business. I always have a comment.”

Martha Beall Mitchell (1918–1976) Wife of American politician

Quoted by Nigel Rees in his book Why Do We Say ...? (1987), ISBN 0-7137-1944-3.
See Wikipedia on no comment.

Related topics