Brian Kernighan Quotes

Powerful Brian Kernighan for Daily Growth

About Brian Kernighan

Brian Kernighan, born on February 17, 1942, in Winnipeg, Manitoba, Canada, is a renowned computer scientist, software engineer, and author, most notably recognized for his contributions to the C programming language. Growing up in Canada, Kernighan developed an early interest in mathematics and computers, which eventually led him to study at McGill University in Montreal. In 1967, he earned a Master's degree from Princeton University under the supervision of renowned computer scientist John McCarthy. His academic journey continued with a Ph.D. in Computer Science from the University of California, Berkeley, in 1970. Kernighan's professional career is intrinsically linked to Bell Labs, where he worked for over two decades, collaborating closely with notable figures like Dennis Ritchie and Ken Thompson. Their joint work resulted in the creation of the C programming language and several influential Unix text editors, including qed (Quote-Edit-Quit) and ed (Editor). One of Kernighan's most significant works is "The C Programming Language," co-authored with Dennis Ritchie and commonly known as "K&R." First published in 1978, the book has become a cornerstone for learning C programming and remains popular today. In addition to his work on C and Unix, Kernighan authored or co-authored several influential texts, including "The AWK Programming Language" and "Data Types in C." His work continues to influence modern software development, with his emphasis on pragmatic solutions and clarity being cherished by programmers worldwide. After retiring from Bell Labs, Kernighan has taught at the University of California, Berkeley, and held various research positions in academia and industry. Despite his retirement, Brian Kernighan remains an active contributor to the field of computer science, continuing to inspire a new generation of programmers with his pioneering work and practical wisdom.

Interpretations of Popular Quotes

"Debugging is twice as hard as writing the code in the first place."

Brian Kernighan's quote highlights the difficulty and time-consuming nature of debugging software compared to the initial development process. It suggests that while coding may be challenging, the effort invested in finding and fixing errors (debugging) is often underestimated and requires twice as much work. This serves as a reminder for developers to prioritize thoroughness, testing, and attention to detail during the development process, to minimize the difficulties encountered during debugging.


"The purpose of computing is insight, not numbers."

The quote by Brian Kernighan emphasizes that the primary goal of computing is not merely to generate or manipulate numbers, but to gain profound understanding, knowledge, or insights into the subject at hand. In other words, technology should serve as a tool for enlightenment rather than just a device for calculation. This insight serves as a reminder that while data and computational capabilities are essential, they are only valuable when used to uncover insights, solve problems, or enhance human understanding.


"I've never met a programming problem that a good night's sleep and a cup of coffee couldn't solve."

This quote by Brian Kernighan emphasizes the importance of rest and perspective in solving complex problems, particularly in programming. It suggests that sometimes, stepping away from a problem for a period (a good night's sleep) and approaching it with a fresh mind can provide clarity and enable one to find solutions more easily. The analogy of a cup of coffee might symbolize the rejuvenation and focus that comes with this brief pause, making it easier to tackle challenging tasks. In essence, Kernighan is encouraging patience, reflection, and a balanced approach in problem-solving.


"Worse is better."

The quote "Worse is better" by Brian Kernighan reflects a design philosophy that prioritizes simplicity, ease of use, and rapid development over perfection or optimal performance. Essentially, it suggests that it's often more beneficial to create a relatively flawed system that works well than to strive for an ideal, complex one that might never be fully realized. This approach can lead to quicker iteration, faster adoption, and easier maintenance in software engineering.


"Every complex problem has a solution that is simple, elegant, and wrong."

This quote emphasizes that in solving complex problems, it's easy to fall into the trap of seeking overly simplistic or elegant solutions without considering their effectiveness and appropriateness. Often, the first solution that comes to mind may not be the best one, and further investigation, testing, or refinement is required to arrive at a correct and efficient solution. In essence, it's a reminder to maintain balance between simplicity and accuracy when tackling complex problems.


Even though most people won't be directly involved with programming, everyone is affected by computers, so an educated person should have a good understanding of how computer hardware, software, and networks operate.

- Brian Kernighan

Software, Everyone, Networks, Though

Computers and computing are all around us. Some computing is highly visible, like your laptop. But this is only part of a computing iceberg. A lot more lies hidden below the surface. We don't see and usually don't think about the computers inside appliances, cars, airplanes, cameras, smartphones, GPS navigators and games.

- Brian Kernighan

Some, Hidden, Appliances, Airplane

Programming language is very specific to instructing a computer to do a particular structure of a sequence. It's the very way you tell the machine what you want it to do.

- Brian Kernighan

Want, Tell, Very, Programming Language

Unix has, I think for many years, had a reputation as being difficult to learn and incomplete. Difficult to learn means that the set of shared conventions, and things that are assumed about the way it works, and the basic mechanisms, are just different from what they are in other systems.

- Brian Kernighan

Other, I Think, Shared, Incomplete

Bell Labs was an astonishing place for many decades, though it fell on somewhat hard times during the telecom meltdown some years ago, as its corporate owner had to cope with shrinking markets.

- Brian Kernighan

Some, Years, Had, Bell

I really enjoyed Princeton as a graduate student.

- Brian Kernighan

Student, Graduate, Princeton

For better or worse, the people who become leaders and decision makers in politics, law and business are going to come from schools like Princeton.

- Brian Kernighan

Decision, Politics, Law, Princeton

Technology is mostly a force for good, but it has its downsides, too. I want my students - and my readers - to be intelligently skeptical about technology and be informed about the good and the not-so-good parts.

- Brian Kernighan

Informed, Good Parts, Mostly, Skeptical

I want students to understand specific technologies, but the real goal is that they should be able to reason about how systems work and be intelligently skeptical about technology so that, when they're running the world in a few years, they'll do a good job.

- Brian Kernighan

Reason, Students, About, Skeptical

No matter what, the way to learn to program is to write code and rewrite it and see it used and rewrite again. Reading other people's code is invaluable as well.

- Brian Kernighan

Other, Code, Invaluable, Rewrite

If you don't understand viruses, phishing, and similar threats, you become more susceptible to them. If you don't know how social networks leak information that you thought was private, you're likely to reveal much more than you realize.

- Brian Kernighan

Private, Social Networks, Realize

I seem to get totally wrapped up in teaching and working with students during the school year. During the summer, I try to spend time in the real world, writing code for therapy and perhaps for some useful purpose.

- Brian Kernighan

Year, Some, Code, Useful

It's important to be informed about issues like usability, reliability, security, privacy, and some of the inherent limitations of computers.

- Brian Kernighan

Some, Informed, Like, Limitations

Every language teaches you something, so learning a language is never wasted, especially if it's different in more than just syntactic trivia.

- Brian Kernighan

Learning, Language, More, Trivia

I had spent the summer of 1966 working at MIT in the group that was the MIT component of the Multics effort.

- Brian Kernighan

Working, Spent, MIT, Component

Anytime you want to hear about graph partitioning, I will be glad to tell you what I know about graph partitioning. It remains a standard problem. I think it's an interesting problem, because it shows up in a variety of guises in real life.

- Brian Kernighan

Tell, I Think, Standard, Real Life

No matter how non-technical your life and work, you're going to have to interact with technology and technical people. If you know something about how devices and systems operate, it's a big advantage.

- Brian Kernighan

Big, Going, Technical, Operate

If you're searching for quotes on a different topic, feel free to browse our Topics page or explore a diverse collection of quotes from various Authors to find inspiration.