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册),
这套丛书还有
《Design Patterns》《Practical Java Programming Language Guide》《The Art of UNIX Programming》《Advanced Programming in the UNIX(R) Environment (2nd Edition)》《Effective Tcl/Tk Programming》
等
。
喜欢读"The Practice of Programming"的人也喜欢的电子书
· · · · · ·
我看过很多类似#程序员必读XX本书#的书单,似乎在几乎所有的推荐书单里面,《程序设计实践》(英文名The Practice of Programming)都没有出现作为一本被推荐的书。我也是在今年暑假突然想开始读一些英文版的技术书籍,然后豆瓣上大致浏览了一下,机缘巧合的买下了这本书。 在...
(展开)
0 有用 villim 2023-01-04 00:49:11 海南
曾经应该是因为 Brian W.Kernighan 所以关注的。本书主要是 c/c++ 来讲解的,不过 Style -> Algorithms -> Design -> Interfaces -> Debugging -> Testing -> Performance -> Portability 这条线现在依然是正确的,理念也不过时。阅读最大的问题是:字体太糟糕了!
4 有用 Joker Lee 2014-02-01 18:17:24
这本99年的书里到处都是不会过时的金玉良言
1 有用 henix 2012-10-20 18:13:15
看的是 http://book.douban.com/subject/1173548/
0 有用 huyan00 2021-04-12 17:29:22
读的中文版翻译不太行
0 有用 不预 2022-03-23 21:50:01
翻了一遍,对工作了几年的人作用不大