Brian Kernighan Quotes

On this page you can find the TOP of Brian Kernighan's best quotes! We hope you will find some sayings from Computer Scientist Brian Kernighan's in our collection, which will inspire you to new achievements! There are currently 20 quotes on this page collected since January 1, 1942! Share our collection of quotes with your friends on social media so that they can find something to inspire them!
All quotes by Brian Kernighan: more...
  • Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

  • If you had done something twice, you are likely to do it again.

    Brian W. Kernighan, Rob Pike (1984). “The UNIX Programming Environment”, Prentice Hall
  • Don't document bad code - rewrite it.

  • ... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If you don't, you are not testing; you are experimenting.

  • Trying to outsmart a compiler defeats much of the purpose of using one.

    Brian W. Kernighan, P. J. Plauger (1978). “The Elements of Programming Style”, Computing McGraw-Hill
  • Trivia rarely affect efficiency. Are all the machinations worth it, when their primary effect is to make the code less readable?

    Brian W. Kernighan, P. J. Plauger (1978). “The Elements of Programming Style”, Computing McGraw-Hill
  • Controlling complexity is the essence of computer programming.

    Brian W. Kernighan (1981). “Software Tools in Pascal”, Addison-Wesley Professional
  • Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.

    Interview with Mihai Budiu, www.cs.cmu.edu. July 2000.
  • Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot easier to work with

  • Mechanical rules are never a substitute for clarity of thought.

    Brian W. Kernighan (1976). “Software Tools”, Addison-Wesley Professional
  • 90% of the functionality delivered now is better than 100% delivered never.

  • Believe the terrain, not the map

  • The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.

    "Unix for Beginners". Paper by Brian Kernighan, 1979.
  • Another effective [debugging] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed "Never mind, I see what's wrong. Sorry to bother you." This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor.

    Sorry   Learning   Mind  
  • As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that way.

    Brian W. Kernighan, Dennis Ritchie (1988). “C Programming Language”, p.13, Prentice Hall
  • Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many programmers do not use such compilers because They're not efficient. (Presumably, this means that it is vital to get the wrong answers quickly.)

    Brian W. Kernighan, P. J. Plauger (1978). “The Elements of Programming Style”, Computing McGraw-Hill
  • C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.

    Brian W. Kernighan, Rob Pike (1999). “The Practice of Programming”, p.71, Addison-Wesley Professional
  • Each new user of a new system uncovers a new class of bugs.

  • If you're as clever as you can be when you write it, how will you ever debug it?

    Brian W. Kernighan, P. J. Plauger (1978). “The Elements of Programming Style”, Computing McGraw-Hill
  • An effective way to test code is to exercise it at its natural boundaries

Page 1 of 1
We hope you have found the saying you were looking for in our collection! At the moment, we have collected 20 quotes from the Computer Scientist Brian Kernighan, starting from January 1, 1942! We periodically replenish our collection so that visitors of our website can always find inspirational quotes by authors from all over the world! Come back to us again!
Brian Kernighan quotes about:

Brian Kernighan

  • Born: January 1, 1942
  • Occupation: Computer Scientist