With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual programmers more effective and productive. This book is full of practical advice and real-world examples in C, C++, Java, and a variety of special-purpose languages. Kernighan and Pike ...
With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual programmers more effective and productive. This book is full of practical advice and real-world examples in C, C++, Java, and a variety of special-purpose languages. Kernighan and Pike have distilled years of experience writing programs, teaching, and working with other programmers to create this book. Anyone who writes software will profit from its principles and guidance.
对返回布尔类型值(或真/假)的函数命名时,应该清楚地反映其返回值情况。比如下面的命名就不是很好了:
if (checkoctal(c))
...
因为这里函数名字就没有指明什么时候返回真,什么时候返回假。而下面这种写法就挺好:
if (isoctal(c))
...
这样就把返回真假的情况指明了。 (查看原文)
Addison-Wesley Professional Computing Series(共46册),
这套丛书还有
《Programming with POSIX® Threads》《Large-Scale C++: Volume I》《C Interfaces and Implementations》《Firewalls and Internet Security》《Effective Tcl/Tk Programming》
等
。
喜欢读"The Practice of Programming"的人也喜欢的电子书
· · · · · ·
我看过很多类似#程序员必读XX本书#的书单,似乎在几乎所有的推荐书单里面,《程序设计实践》(英文名The Practice of Programming)都没有出现作为一本被推荐的书。我也是在今年暑假突然想开始读一些英文版的技术书籍,然后豆瓣上大致浏览了一下,机缘巧合的买下了这本书。 在...
(展开)
0 有用 fxp 2017-12-10 19:35:43
这本书应该是我目前唯一个给五星的书。粗读了一遍,利用周末两天时间读完了,发现这里面涉及到的章节知识是一个合格程序员都需要掌握的内容。以后要把后面涉及工程类的细读,希望能把每章节后面的supplementary reading都拜读一遍,虽然这不是一件容易的事情。
0 有用 凛之魔法石 2010-09-23 20:53:30
前几章还可以看看,后面内容显得有点老了
0 有用 NewAttila 2017-02-11 14:59:20
说点无关的,昨天看rust那本,把这本书里提到的点都提到了。以后怼人就用附录里的话拿来用
0 有用 huyan00 2021-04-12 17:29:22
读的中文版翻译不太行
0 有用 BruceChen 2019-03-24 14:01:23
看了很多遍,就看了2章,后面的章节需要慢读