Brian Kernighan
Brian Kernighan
Brian Wilson Kernighan is a Canadian computer scientist who worked at Bell Labs alongside Unix creators Ken Thompson and Dennis Ritchie and contributed to the development of Unix. He is also coauthor of the AWK and AMPL programming languages. The "K" of K&R C and the "K" in AWK both stand for "Kernighan". Since 2000 Brian Kernighan has been a Professor at the Computer Science Department of Princeton University, where he is also the Undergraduate Department Representative...
NationalityCanadian
ProfessionScientist
Date of Birth1 January 1942
CountryCanada
Brian Kernighan quotes about
An effective way to test code is to exercise it at its natural boundaries
Don't document bad code - rewrite it.
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
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.
If you had done something twice, you are likely to do it again.
If you're as clever as you can be when you write it, how will you ever debug it?
Mechanical rules are never a substitute for clarity of thought.
Believe the terrain, not the map
C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.
90% of the functionality delivered now is better than 100% delivered never.
Controlling complexity is the essence of computer programming.
Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.