News for hackers. Stuff that matters.
Re:C Language Resources by svag on Wednesday February 16, 2011 @09:42AM (#2226493)
Today I was trying to find some resources(sites, books, etc) in order to keep up to date with some programming languages. One of them was C and I found the following site:

http://www.di-mgt.com.au/cprog.html

Just to mention that the last update of this page was on 1 January 2010.

Re:C Language Resources by sfphotoarts on Wednesday February 16, 2011 @01:09PM (#2227473)
It's fascinating watching the HN community ebb and flow around topics, there's this collective conscious that discusses programming languages (mostly) and some days the tide takes us to a heavily Pythonic view of the world, and this week we're having a c revivalist movement.

I thinking writing a system to identify topics on HN day after day and try to correlate this with other events might be interesting, is it for example all reactionary, is it some form of herding, does it follow topics on other similar forums, or just pseudo-random.

Back to the topic. There is one definitive C resource, K&R.

Re:C Language Resources by mmastrac on Wednesday February 16, 2011 @03:05PM (#2228016)
K&R doesn't cover c99, which makes C far less annoying to write in, IMHO.

Unfortunately I don't have a good, comprehensive reference for c99 to offer up myself.

Re:C Language Resources by parenthesis on Wednesday February 16, 2011 @05:31PM (#2228631)
Re:C Language Resources by nitrogen on Wednesday February 16, 2011 @05:06PM (#2228541)
The C99 standard itself and corresponding Wikipedia pages are quite useful. The gcc manual is also a handy reference for determining whether a particular gcc feature is standard compliant.

http://www.google.com/search?&q=filetype%3Apdf+iso+9899

http://en.wikipedia.org/wiki/C99

Re:C Language Resources by reirob on Thursday February 17, 2011 @08:46AM (#2230850)
Funny that only 2 commercial compilers are fully supporting C99 standard: IBM Rational logiscope >= 6.4 and Sun Studio.
Re:C Language Resources by mrerrormessage on Wednesday February 16, 2011 @10:41AM (#2226768)
What about "The C Programming Language"? Didn't that make a lot of us better programmers by teaching us how to use C?
Re:C Language Resources by agentultra on Wednesday February 16, 2011 @11:03AM (#2226895)
It's a classic and certainly taught me a lot.

It's also one of the more slim programming books on my shelf. I've considered handing to to friends interested in programming. Simply because I hand them a Python book with thousands of pages and I can see them visibly cringe.

I also find the K&R style quite readable. :)

Re:C Language Resources by RBerenguel on Wednesday February 16, 2011 @11:09AM (#2226928)
I also love K&R's style, it is one of my favourite books about programming
Re:C Language Resources by gtani on Wednesday February 16, 2011 @02:00PM (#2227727)
Konig's Traps and Pitfalls, another slim book

http://www.amazon.com/C-Traps-Pitfalls-Andrew-Koenig/dp/0201...

Re:C Language Resources by AndrejM on Wednesday February 16, 2011 @12:49PM (#2227373)
Yes. But I'd also recommend getting Stephen Prata's C Primer Plus. It covers C99, and talks about more complicated topics such as multiple pointer indirection and the preprocessor.
Re:C Language Resources by rosstafarian on Wednesday February 16, 2011 @03:19PM (#2228079)
yeah k&r is great i remember going through it my first time and being amazed at how elegant the example code was. Really a great book
Re:C Language Resources by forgotAgain on Wednesday February 16, 2011 @01:19PM (#2227520)
I learned from the original edition back in the 80's. When I saw the price at Amazon I was surprised. The list price is given as $67. The Amazon price is $48. The book's a classic but the pricing seems excessive given that the edition is 22 years old.
Re:C Language Resources by spacemanaki on Wednesday February 16, 2011 @12:43PM (#2227332)
This looks like it's only online resources, but I'm reading C Interfaces and Implementations, and it's great. I wish I had read it earlier. Even though I don't use C much at work, it's quite an interesting step from K&R.
Re:C Language Resources by nitrogen on Wednesday February 16, 2011 @05:24PM (#2228608)
I would recommend adding the Linux Kernel Coding Style guide to the list of recommended reading for C programmers. You don't have to follow its advice, but seeing some of the reasoning behind the policies therein can improve your appreciation of the language details.

Original version (text): http://www.kernel.org/doc/Documentation/CodingStyle

Formatted version (HTML): http://www.linuxfromscratch.org/alfs/view/hacker/part2/hacke...

Re:C Language Resources by saqi on Wednesday February 16, 2011 @02:15PM (#2227787)
This list is full of valuable links. Thank you all!
Re:C Language Resources by nonUser on Wednesday February 16, 2011 @09:32AM (#2226454)
Website is down :(
Re:C Language Resources by dwc on Wednesday February 16, 2011 @09:49AM (#2226532)
HN + Reddit, apparently too much for the server. Maybe it'll respond properly later.

EDIT: I just refreshed and it worked.