home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!bu.edu!spacefox
- From: spacefox@acs.bu.edu (Godfrey Degamo)
- Newsgroups: comp.lang.c
- Subject: Re: Most difficult part of learning C?
- Message-ID: <94798@bu.edu>
- Date: 28 Aug 92 01:50:17 GMT
- References: <9208251159.AA04122@ult4> <15230@ksr.com>
- Sender: news@bu.edu
- Organization: Boston University, Boston, MA, USA
- Lines: 51
- Originator: spacefox@acs.bu.edu
-
-
-
- I agree totally with John F. Woods. Learning C was easy. Mastering C,
- just like mastering any computer language, will take a lifetime pursuit.
- This reminds me of a funny, but full of wisdom quote from my C bible :) :
-
-
- A substantial part of designing good modules and good functions is
- perhaps best described as "common sense." This includes a healthy respect
- for human frailty and a willingness to leave well enough alone. For example,
- C is designed to implement the int data type efficiently. If you don't
- have a particular need for a long int or unsigned int, don't use them. Don't
- use an isolated char simply to save an atom of space. Avoid fiddling with
- data types just for some aesthetic pleasure or sense of orderliness. Don't
- use typedef symbols when keywords will do. Don't #define constants when
- what you mean is zero or nonzero; just use zero and one. Resists casts;
- they're for broken bones. Don't create data structures if there's nothing
- inherently structured about your data. Use short names when they say what
- you mean.
-
- [But, heres where it gets pretty funny....]
-
- Eliminate the ornaments of programs and instead focus on the clarity
- of your code and the ingenuity of your methods. You will program rings around
- Fancy Dan, who never learned to leave well enough alone. While Fancy Dan
- is becoming an expert on the faults of compilers, because his program stress
- their limitations, you are getting your work done.
-
- -Craig Bolan,
- Mastering C
- III:12:221
-
- :)
-
-
- Well, I'll admit this is just a waste of newsgroup space! I suggest that
- you introduce the concepts of software engineering early. but, then
- software engineering is not specific to the C language! Ah well...
- I find that with me, most of the things people have listed as the hardest
- part of learning C, is really just a lack of discipline. No insult intended!
- If you're having problems with pointers, draw a diagram; if you're having,
- problems with operator precedence memorize them or use alot of '()'
-
- Well, to stop making you think that I'm an arrogant C programmer, I don't know
- the correct syntax to the switch statement, in fact, I don't know more than 60%
- of the specifics to any of the stdio.h or stdlib.h modules! But, that's why
- I have a trusty C manual! (maybe that's why Microsoft turned me down? hmmm...)
-
- -scherzo,
- G. Degamo,
- spacefox@acs.bu.edu
-