back to indexC Programming Language | Brian Kernighan and Lex Fridman
00:00:23.960 |
- I think it found a sweet spot of expressiveness. 00:00:29.920 |
So you could rewrite things in a pretty natural way, 00:00:32.680 |
and efficiency, which was particularly important 00:01:01.480 |
it could be used on all those computers that ran Unix, 00:01:07.000 |
and that way, Unix, the operating system itself, 00:01:14.280 |
in one of these things where things fed on each other 00:01:19.520 |
- What did it take to write sort of a definitive book, 00:01:23.600 |
probably definitive book on all of programming, 00:01:25.560 |
like it's more definitive to a particular language 00:01:36.320 |
at least from my perspective, maybe you can correct me, 00:01:43.000 |
how this language is supposed to be used and applied. 00:01:48.560 |
Did you have those kinds of ambitions in mind 00:01:56.440 |
So it's an accident of timing, skill, and just luck. 00:02:10.040 |
And at that point, Unix was starting to spread. 00:02:13.640 |
but it would be dozens to hundreds of Unix systems, 00:02:16.920 |
and C was also available on other kinds of computers 00:02:31.040 |
and Bell Labs was really the only source for it, 00:02:45.080 |
So I twisted his arm until he agreed to write a book, 00:02:52.160 |
I guess, of going first is that then other people 00:02:54.440 |
have to follow you if they're gonna do anything. 00:03:05.200 |
And the reference manual in that book is his, period. 00:03:10.880 |
So just crystal clear prose, very, very well expressed. 00:03:16.320 |
And then he and I, I wrote most of the expository material, 00:03:21.320 |
and then he and I sort of did the usual ping-ponging 00:03:27.040 |
But I spent a lot of time trying to find examples 00:03:30.440 |
and that would tell people what they might need to know 00:03:33.800 |
that they should be thinking about needing it. 00:04:00.440 |
just like a half-broken robot communicating with them 00:04:04.400 |
So what, and that's a representative example. 00:04:10.680 |
- I think a good example will tell you how to do something, 00:04:44.960 |
that are representative of what people want to do 00:04:53.000 |
and see the core parts and modify them to their taste. 00:04:58.000 |
And I think that a lot of programming books that I, 00:05:08.080 |
They don't give you examples that are both realistic 00:05:23.720 |
and how we would do something useful with them. 00:05:26.000 |
And then how I put them back out again, neatly formatted. 00:05:30.760 |
there is something magical of doing something 00:05:39.960 |
but the attempt in all cases was to get something 00:05:45.160 |
or would be very representative of useful things 00:05:51.520 |
But within that vein of fundamentally text processing,