News for hackers. Stuff that matters.
Re:A critique of "How to C in 2016" by pjmlp on Friday January 15, 2016 @07:09AM (#10908755)
Sure, but in a way C is the JavaScript of systems programming languages, in a deep need of a "The Good Parts" book as well.
Re:A critique of "How to C in 2016" by benbenolson on Friday January 15, 2016 @08:30AM (#10909146)
I'm sorry, but is this comment a joke? Have you ever read "The C Programming Language", and seen how simple C is? These arguments that the two OPs are having are important, but only when faced with obscure architectures that nearly nothing but C will run on.

Conversely, JavaScript's failures are not because of the wide variety of architectures that it supports (a tiny fraction of C's), but instead on the monolithic and bad design of the language. If you read "The C Programming Language", you'll realize that in the ~240 pages of text, you know basically every feature of the language. It's small, and it's elegant, and it's portable. JavaScript is none of those.

Re:A critique of "How to C in 2016" by pjmlp on Friday January 15, 2016 @09:13AM (#10909367)
It is not a joke, rather the conclusion of someone that was already dismayed with C back in the mid-90's.

> If you read "The C Programming Language", you'll realize that in the ~240 pages of text, you know basically every feature of the language.

Except for those little compiler specific little issues, it seems:

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

http://blog.regehr.org/archives/213

http://blog.regehr.org/archives/226

http://blog.regehr.org/archives/232

> It's small, and it's elegant, and it's portable

Have you had the pleasure to port C code across multiple C compilers and OS in the mid-90's?

Re:A critique of "How to C in 2016" by Roboprog on Friday January 15, 2016 @12:04PM (#10910523)
Agreed. (yes, did a lot of C in the mid/early 90s that ran on sundry unices, DOS, OS/2, Windows & VAX). Ouch.

"The C Programming Language" isn't that great of a book, either. I had FAR better luck making sense of C (after having been in school for almost 4 years, and working part time on another language for almost 2 years) with the book "C, An Advanced Introduction" (1st version, not "ANSI Edition"), by Narain Gehani. For somebody transitioning from real high level languages, the array/pointer/string swamp was a real source of anti-productivity fun and games until explained by somebody other than its creators.

Re:A critique of "How to C in 2016" by SloopJon on Friday January 15, 2016 @09:15AM (#10909385)
When you're done with The C Programming Language, read Expert C Programming, C Traps and Pitfalls, and The C Puzzle Book. Then tell me how simple C is.
Re:A critique of "How to C in 2016" by LeonidasXIV on Friday January 15, 2016 @09:16AM (#10909392)
Have you read "Expert C Programming: Deep C Secrets"? That book will show you that a simple language does not mean that programming in it is simple.

On a related note, I believe "The C Programming Language" is not a good book for the realities of 2016.

Re:A critique of "How to C in 2016" by dllthomas on Friday January 15, 2016 @04:15PM (#10912199)
There's two recommendations here for "Expert C Programming".

I read it cover to cover fairly recently; I don't think there was really anything I disagreed with, but there also wasn't anything I didn't already know and wasn't already practicing. While I've been programming C a while now, that surprised me. I've decided that the book isn't bad but is probably more "help get you from beginner to intermediate" than "help get you from intermediate to expert", much less something of use to an expert (sadly, in my position).

An alternative interpretation would have it that there is just not enough to say about C that an expert-level book is likely to say things a C expert would not already know. That would argue against your point about the complexity of C. As I say, though, this has not been my conclusion.

[1] Except that Eliza was named after the character from Pygmalion - I'd somehow never put that together!

Re:A critique of "How to C in 2016" by anon1385 on Friday January 15, 2016 @09:15AM (#10909387)
C is not simple.
Re:A critique of "How to C in 2016" by jevgeni on Friday January 15, 2016 @08:31AM (#10909148)
There are tons of such books.