Wanted: advice on a good C textbook

Walker Mangum walker at ficc.uu.net
Thu Jul 20 03:34:49 AEST 1989


In article <6381 at bunker.UUCP>, garys at bunker.UUCP (Gary M. Samuelson) writes:
> In article <1900 at prune.bbn.com> rsalz at bbn.com (Rich Salz) writes:
> [in my previous posting]
> 
> >>I *highly* recommend _The C Puzzle Book_.
> 
> >Ick.  I highly disrecommend this book.  It teaches you to debug code that
> >only a psychopath would write, and warps you into looking for things that
> >are almost never there.
> 
> I haven't read _The C Puzzle Book_, but learning to debug code
> that only a psychopath (or should that be sociopath?) would write
> is a marketable skill.

Exactly the point.  I suppose some of you are fortunate enough to only
ever see your own beautifully styled, expertly crafted, well commented,
and obviously lucid code.

I'm not.  Of course, my own code is beautiful ;-), but I swear some that
I pick up comes from deranged minds.  I don't actually have to maintain
this crap, but I freely admit that I enjoy reading other peoples code,
because:   1. I occasionally find a new and elegant solution to something.
           2. I don't try to invent everything (I'm not big in NIH).  If
              I find something I can use, I pack it away for future
              use.
           3. It teaches me what not to do.  I recognize vomit when
              I see it, and try not to do same.
           4. It is fun to see how stupid some people are.  0.5 ;-)

Anyway, there is a difference between being able to decode vomit and 
habitually puking.  I think that it is a damned important skill to be
able to do the former, and to avoid the latter.

I presume that those of you who argue that exposure to bad code causes 
one to create bad code work alone, or only with other perfect programmers.

Anyway, I still *highly* recommed _The C Puzzle Book_.  I don't think 
that bad coding style (and, I agree, it's in there) is contagious from
mere exposure.  I didn't recommend using any of the styles in the book,
and I don't give a crap what standard the puzzles do or don't conform
to.  The point is, if you can answer the puzzles correctly, you MUST
possess a good working knowledge of C.

Here's the publisher's info:
	Feuer, Alan R., THE C PUZZLE BOOK.  Prentice-Hall, 1982.

-- 
Walker Mangum                                  |  Adytum, Incorporated
phone: (713) 333-1509                          |  1100 NASA Road One  
UUCP:  uunet!ficc!walker  (walker at ficc.uu.net) |  Houston, TX  77058
Disclaimer: $#!+ HAPPENS



More information about the Comp.lang.c mailing list