Re: Advice on learning C as first language

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marco Peereboom
Date: Wednesday, November 24, 2010 - 8:47 am

That is a bit of a rough book to start with but very good.  It is very
dense but touches on most language features.  Its density is actually
what makes it so good.  You can read it twice in a weekend.  Once you do
that pick a simple utility from /bin and go read the code.  That will
put what you learned/read in the book in perspective.

The thing that that book does not teach is libraries and other things
since it simply focuses on the language itself.  Some other books I
found very helpful were:
http://www.amazon.com/Practice-Programming-Brian-W-Kernighan/dp/020161586X/ref=sr_1_1?...
http://www.amazon.com/Programming-GNU-Software-Andy-Oram/dp/1565921127/ref=pd_sim_b_5

The must have is:
http://www.amazon.com/Programming-Environment-Addison-Wesley-Professional-Computing/dp...

All that reading aside; the only way to truly "get it" is to read a
piece of code you are interested in and deconstructing it completely.
The trick is finding a piece of code that illustrates the things you are
interested in *and* is well written.  Most things in the OpenBSD tree
are well written but beware of the dragons.  Doing this a couple of
times will make almost anyone interested enough a good enough coder.

Learning C is easy; learning to using C right is the hard part.  Read
more code to learn from the experts.

Good luck.

On Wed, Nov 24, 2010 at 06:55:20AM -0800, James Hozier wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Advice on learning C as first language, James Hozier, (Wed Nov 24, 7:55 am)
Re: Advice on learning C as first language, Bret Lambert, (Wed Nov 24, 8:07 am)
Re: Advice on learning C as first language, Jan Stary, (Wed Nov 24, 8:09 am)
Re: Advice on learning C as first language, Marco Peereboom, (Wed Nov 24, 8:47 am)
Re: Advice on learning C as first language, Jona Joachim, (Wed Nov 24, 8:49 am)
Re: Advice on learning C as first language, Kenneth Gober, (Wed Nov 24, 8:55 am)
Re: Advice on learning C as first language, Scott Learmonth, (Wed Nov 24, 9:06 am)
Re: Advice on learning C as first language, Bahador NazariFard, (Wed Nov 24, 9:14 am)
Re: Advice on learning C as first language, Michael H Lambert, (Wed Nov 24, 9:28 am)
Re: Advice on learning C as first language, Brad Tilley, (Wed Nov 24, 9:36 am)
Re: Advice on learning C as first language, Brad Tilley, (Wed Nov 24, 10:02 am)
Re: Advice on learning C as first language, Peter J. Philipp, (Wed Nov 24, 10:27 am)
Re: Advice on learning C as first language, Nicolas P. M. Legrand, (Wed Nov 24, 11:27 am)
Re: Advice on learning C as first language, Darrin Chandler, (Wed Nov 24, 2:20 pm)
Re: Advice on learning C as first language, Marco Peereboom, (Wed Nov 24, 3:32 pm)
Re: Advice on learning C as first language, Tomas Bodzar, (Thu Nov 25, 12:00 am)
Re: Advice on learning C as first language, Tomas Vavrys, (Thu Nov 25, 4:06 am)
Re: Advice on learning C as first language, Christiano F. Haesbaert, (Thu Nov 25, 5:20 am)
Re: Advice on learning C as first language, Sevan / Venture37, (Thu Nov 25, 5:44 am)
Re: Advice on learning C as first language, Kenneth Gober, (Thu Nov 25, 7:26 am)
Re: Advice on learning C as first language, Nicolas P. M. Legrand, (Thu Nov 25, 7:42 am)
Re: Advice on learning C as first language, Ludo Smissaert, (Thu Dec 2, 1:59 pm)
Re: Advice on learning C as first language, Daniel B., (Tue Dec 14, 9:09 pm)
Re: Advice on learning C as first language, Friedrich Locke, (Wed Dec 15, 3:57 am)