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.
作者简介
· · · · · ·
Brian W.Kernighan和Rob Pike在朗讯科技贝尔实验室的计算机科学研究中心工作。Brian Kernighan是Addison-Wesley的“专业计算丛书”顾问编辑,也是《C程序设计语言》的合著者之一(与Dennis M.Ritchie合作)。Rob Pike是Plan 9和Inferno操作系统的主要结构设计与实现者,他的主要研究兴趣是如何帮助人们更容易地开发软件。
对返回布尔类型值(或真/假)的函数命名时,应该清楚地反映其返回值情况。比如下面的命名就不是很好了:
if (checkoctal(c))
...
因为这里函数名字就没有指明什么时候返回真,什么时候返回假。而下面这种写法就挺好:
if (isoctal(c))
...
这样就把返回真假的情况指明了。 (查看原文)
我看过很多类似#程序员必读XX本书#的书单,似乎在几乎所有的推荐书单里面,《程序设计实践》(英文名The Practice of Programming)都没有出现作为一本被推荐的书。我也是在今年暑假突然想开始读一些英文版的技术书籍,然后豆瓣上大致浏览了一下,机缘巧合的买下了这本书。 在...
(展开)
0 有用 huyan00 2021-04-12 17:29:22
读的中文版翻译不太行
0 有用 lili 2012-03-14 14:23:53
传统要保持
0 有用 Attila 2017-02-11 14:59:20
说点无关的,昨天看rust那本,把这本书里提到的点都提到了。以后怼人就用附录里的话拿来用
0 有用 prowyh 2009-03-03 12:44:55
This book taught you how to write practical programs.
0 有用 菲儿0824 2020-04-19 19:57:36
还行
0 有用 villim 2023-01-04 00:49:11 海南
曾经应该是因为 Brian W.Kernighan 所以关注的。本书主要是 c/c++ 来讲解的,不过 Style -> Algorithms -> Design -> Interfaces -> Debugging -> Testing -> Performance -> Portability 这条线现在依然是正确的,理念也不过时。阅读最大的问题是:字体太糟糕了!
0 有用 不预 2022-03-23 21:50:01
翻了一遍,对工作了几年的人作用不大
0 有用 Titan_Pascal 2022-01-05 17:10:05
很实用,很幽默。
0 有用 司马元朗 2021-07-03 22:28:51
推荐给新手看。
0 有用 huyan00 2021-04-12 17:29:22
读的中文版翻译不太行