随便写写
这些年来,经常会收到前些年写的那本书的读者来信。最近有些同学抱怨说买不到了,有的想让我寄一本。我只能说,谢谢,我这里也没有。估计,出版社也不会再刷了。如果真不想看电子版,可以去图书馆复印一本。其实写过技术类书的同学都知道,写书并不是件好差使,也绝对不可能靠这个赚钱。基本上,你投入的精力,是金钱上的回报远远不及的。真正的意义或许在分享了自己的知识,多交了几个朋友吧。
话说那本书,我自己是不太满意的。04 年写的时候,基本只能总结 03 年之前的一些东西,还差许多火候。写完之后,我给自己打了 70 分,慢慢的,觉得有 60 分就不错了。勉强及格吧。
这几年一直有念头写点别的东西。源于这几年做项目的诸多经历。觉得自己悟到了不少东西,可又总感觉还总结不好。一开始想译一本关于 C 语言的书,没开始就被那厚度吓坏了。一些做书的同学又建议我还不如自己写。是啊,我翻了一下,最有名的,谭公的《C 语言程序设计》,无语。据说很多人想再写一本,我就不参合了。有什么能超过 K&R 的《C程序设计语言》呢?
其实,写语言是次要的东西。除了 C++ ,我看没几种语言需要有一本以上谈语言的书了。关键是借语言谈点事儿。我们并不是用不好语言,是不知道到底该怎么解决复杂性这个问题。
我们会有很多方法解决问题,可能也不会存在某种通用的伎俩。不过每个有 10 年以上编程经验的程序员,只要他不是天天重复昨天。那么总会有自己的一套东西,值得拿出来供人参考一下。可以是编程习惯,编码风格,常用的范式,刻意规避的问题。
近三年来,我用 C 语言堆砌了大量的代码。想了很多问题。加上之前一共 19 年(1991 年到 2010 年)的 C/C++ 经验,总算觉得稍微摸到点门道。唉,最近项目还是太忙了。忙过了,真想写写,总结一下。绕开各种语言表面的浮华,看清问题的本质,用 C 这样貌似简陋的语言工具,去构建一个由许多人共同维护的复杂项目,还是一件挺有趣的事情啊。
问题的实质往往不是你是否能找到一个精巧的结构,完美的表达它;而是找到一个最通俗易懂,不需要同伴付出额外学习负担的方式。所谓“大巧若拙”吧。
Comments
Posted by: 孙小美 | (33) January 16, 2010 11:50 PM
Posted by: sisi | (32) January 14, 2010 11:04 AM
Posted by: yue169 | (31) January 12, 2010 08:18 PM
Posted by: alioxp | (30) January 12, 2010 04:37 PM
Posted by: mike | (29) January 12, 2010 03:12 PM
Posted by: apple | (28) January 11, 2010 08:18 PM
Posted by: tiangu0120 | (27) January 11, 2010 05:23 PM
Posted by: tiangu0120 | (26) January 11, 2010 05:22 PM
Posted by: Matthew | (25) January 11, 2010 02:42 PM
Posted by: Yili | (24) January 11, 2010 12:54 PM
Posted by: cloud | (23) January 11, 2010 12:13 PM
Posted by: Yili | (22) January 11, 2010 10:37 AM
Posted by: 刺猬 | (21) January 11, 2010 09:33 AM
Posted by: zhangbiao | (20) January 11, 2010 09:10 AM
Posted by: Anonymous | (19) January 11, 2010 08:44 AM
Posted by: myan | (18) January 11, 2010 07:43 AM
Posted by: ccd | (17) January 10, 2010 11:39 PM
Posted by: diwayou | (16) January 10, 2010 11:03 PM
Posted by: system | (15) January 10, 2010 10:50 PM
Posted by: mei ren | (14) January 10, 2010 06:42 PM
Posted by: feelapi | (13) January 10, 2010 01:32 PM
Posted by: cloud | (12) January 10, 2010 01:20 PM
Posted by: chinainent | (11) January 10, 2010 01:18 PM
Posted by: lin | (10) January 10, 2010 10:50 AM
Posted by: sandy | (9) January 9, 2010 11:49 PM
Posted by: cloud | (8) January 9, 2010 10:25 PM
Posted by: system | (7) January 9, 2010 02:38 PM
Posted by: mm | (6) January 9, 2010 02:19 PM
Posted by: 池中物 | (5) January 9, 2010 12:39 PM
Posted by: diwayou | (4) January 9, 2010 09:27 AM
Posted by: missdeer | (3) January 9, 2010 09:02 AM
Posted by: yeka | (2) January 9, 2010 02:54 AM
Posted by: abc881858 | (1) January 9, 2010 12:24 AM