From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public X-Google-Thread: fac41,9a0ff0bffdf63657 X-Google-Attributes: gidfac41,public From: tej@world.std.com (Tom J) Subject: Re: College, C, etc. (Was Re: Is there a language that Dijkstra liked?) Date: 1998/10/23 Message-ID: #1/1 X-Deja-AN: 404391926 Sender: tej at world dot std dot com References: <6skfs7$2s6$1@hirame.wwa.com> <36228EC3.4F7381FD@domain.nul> <3630b064.23189339@news.supernews.com> <3630C8DC.DF508803@fv.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada Summary: unless you read Date: 1998-10-23T00:00:00+00:00 List-Id: In article <3630C8DC.DF508803@fv.com>, Darren New wrote: >Uh, you can't teach great C. C is a very simple language with lots of >potholes. You can teach programming OK, but getting C right is simply a >matter of experience. You make the same mistake the third time, and you >say "Oh, right, I did that six months ago, it had the same wierd >behavior, maybe I did it again." It's like driving. You can't teach >someone how to get out of a blow-out or where to drive during an >earthquake. The conditions where such could happen are just too >variable. ... Unless you read books. "C Traps and Pitfalls" by Koenig, "Safer C" by Hatton. books on structured programming. I read The IEEE Tutorial on Structured Programming but it may no longer be available. You can also read books on testing such as "Testing Computer Software" by Kaner, Falk, Nguyen, which has lists of common problems in the back. The process you use is even more important. Read "Introduction to the Personal SOftware Process" by Humphrey. You should try to get the C spec. It is from ISO now but it may be cheaper in a paperback called "The Annotated C Reference" or something. I have the ANSI spec, so I can't comment on the annotations; just read the spec part of the book. If you read the C FAQ of comp.lang.c, you will find references for C coding standards. if you follow a good coding standard (updated for ANSI C) then you will avoid many problems. -- Tom Janzen - tej at world dot std dot com USA Dist. Real-Time Data Acquisition S/W for Science and Eng. under POSIX, C, C++, X, Motif, Graphics, Audio http://world dot std dot com/~tej