Web blog of yydzero
姚延栋(Yandong Yao)的博客
归档
« 十一月 2009
星期日星期一星期二星期三星期四星期五星期六
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
今天
Click me to subscribe
Search In My Blog

链接
 

今日点击: 23

Locations of visitors to this page
« UTF-8 Migration tool... | Main | collection of mdb... »
星期四 九月 21, 2006
C books and articles

1. Books on C programming languages

  • The C Programming Language, Kernighan and Ritchie, 2nd Edition. Still reads well. I still have and use the first edition dated 1978. See <http://cm.bell-labs.com/cm/cs/cbook/>.
  • C Puzzle Book, Alan R Feuer, Addison-Wesley, 2nd edition 1999, ISBN 0201604612. The best ever book on understanding the quirks of C and how to use pointers properly.
  • The Practice of Programming, Kernighan and Pike, Addison-Wesley, 1999. An update of an earlier book written in the 1970s. Timeless advice, not just on C but on Java, C++ and Perl. See <http://cm.bell-labs.com/cm/cs/tpop/>.
  • The Standard C Library, PJ Plauger, Prentice Hall, 1992. Literally how it all works with full source code and tests.

    2. Some intresting articles and books

    Interview with Brian Kernighan Enjoyable reading with some support for our views on C++. Plus advice on how to pronounce his name correctly.
    comp.lang.c Frequently Asked Questions

    Link to www version. Highly relevant. An up-to-date copy may be obtained from ftp.eskimo.com in directory u/s/scs/C-faq/.

    中文faq的地址(提供了PDF格式):http://c-faq-chn.sourceforge.net/ccfaq/node1.html

    ANSI C Programming Lanuage A useful short help on C Programming, including precedence and the preprocessor.
    ANSI C Standard Library Summary of the ANSI C standard library functions (that's the real ANSI C).
    Rationale for ANSI C A link to the original Rationale for American National Standard for Information Systems - Programming Language - C. This was included in the original ANSI standard explaining why things were done as they were. It was unfortunately dropped from the ISO standard.
    Style in C Rob Pike's set of essays on coding style and a "philosophy of clarity in programming" as opposed to laying down hard rules.
    C Traps and pitfalls An essay by Andrew Koenig of AT&T Bell Labs written as the basis to his book C Traps and Pitfalls. "The C language is like a carving knife: ... This paper shows some of the ways C can injure the unwary, and how to avoid injury." Worth reading (and then re-reading).
    How To Steal Code Henry Spencer's article on inventing the wheel only once. "Never build what you can (legally) steal! Done right, it yields better programs for less work". There are some useful C programs at the end.
    The Ten Commandments for C Programmers Henry Spencer's amusing, but true, adaptation of the ten commandments for C programmers. We love number 6: If a function be advertised to return an error code in the event of difficulties, thou shalt check for that code, yea, even though the checks triple the size of thy code and produce aches in thy typing fingers, for if thou thinkest ``it cannot happen to me'', the gods shall surely punish thee for thy arrogance. Read and take note.

    How to write unmaintainable code

     

     

    Expert C Programming

    A link to Roedy Green's very amusing article on how to guarantee a lifetime's employment by making life impossible for maintenance programmers. (He actually has to explain that it's a joke!) Although focused on Java, he gives plenty of examples in C. If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. More quotes below.

     

    很不错的一本书,不过包含很多看似和语言无关的东西,我第一遍看的时候都跳过去了。这也造成本书的组织有点散。

     

     

    References

     

  • Posted at 11:56下午 九月 21, 2006 by Yaodong Zero Yao in C&C++  |  评论[1]

    评论:

    good

    发表于 anne lester 在 2006年09月22日, 09:53 下午 CDT #

    发表一条评论:
    • HTML语法: 禁用