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册),
这套丛书还有
《Effective C++ CD》《More Effective C++》《Design Patterns》《Advanced Programming in the UNIX Environment》《TCP/IP Illustrated》
等
。
喜欢读"The Practice of Programming"的人也喜欢的电子书
· · · · · ·
我看过很多类似#程序员必读XX本书#的书单,似乎在几乎所有的推荐书单里面,《程序设计实践》(英文名The Practice of Programming)都没有出现作为一本被推荐的书。我也是在今年暑假突然想开始读一些英文版的技术书籍,然后豆瓣上大致浏览了一下,机缘巧合的买下了这本书。 在...
(展开)
1 有用 henix 2012-10-20 18:13:15
看的是 http://book.douban.com/subject/1173548/
0 有用 菲儿0824 2020-04-19 19:57:36
还行
0 有用 prowyh 2009-03-03 12:44:55
This book taught you how to write practical programs.
0 有用 villim 2023-01-04 00:49:11 海南
曾经应该是因为 Brian W.Kernighan 所以关注的。本书主要是 c/c++ 来讲解的,不过 Style -> Algorithms -> Design -> Interfaces -> Debugging -> Testing -> Performance -> Portability 这条线现在依然是正确的,理念也不过时。阅读最大的问题是:字体太糟糕了!
0 有用 之江 2012-06-06 17:08:09
没有推崇的那么好