News for hackers. Stuff that matters.
Re:Reading Log for Effective C: An Introduction to Professio... by quackulus on Wednesday June 21, 2023 @12:14PM (#36420436)
How does it compare to KnR?
Re:Reading Log for Effective C: An Introduction to Professio... by nesarkvechnep on Wednesday June 21, 2023 @02:41PM (#36422580)
The article states that it’s “generally an average-to-poor book”. Is KnR a poor book?
Re:Reading Log for Effective C: An Introduction to Professio... by quackulus on Wednesday June 21, 2023 @04:03PM (#36423605)
I meant coverage, not impression. I think KnR is a great book.
Re:Reading Log for Effective C: An Introduction to Professio... by polalavik on Wednesday June 21, 2023 @09:02PM (#36426850)
I’m always a little confused by the hype of KnR. It seems like just an introduction on the syntax of c?

It doesn’t seem to really tell you how to build great programs with C or anything more complex than the absolute basics which you can find on the internet for free.

Re:Reading Log for Effective C: An Introduction to Professio... by bcrl on Wednesday June 21, 2023 @09:09PM (#36426896)
I found the Annotated ANSI C Standard by Herbert Schildt to be far more helpful in understanding C syntax than the K&R book ever was. I was lucky enough to find it in a local book store while still in high school in 1993.
Re:Reading Log for Effective C: An Introduction to Professio... by quackulus on Wednesday June 21, 2023 @11:40PM (#36427762)
Thanks, although I’m puzzled after reading that Schildt has “clear style that leaves the reader confident but dangerously ignorant.” [0]

[0] http://herbert.the-little-red-haired-girl.org/en/c-links/ind...

Re:Reading Log for Effective C: An Introduction to Professio... by AntiRush on Thursday June 22, 2023 @12:13AM (#36427939)
This book was so bad it inspired a new word:

http://catb.org/jargon/html/B/bullschildt.html

Re:Reading Log for Effective C: An Introduction to Professio... by gpderetta on Thursday June 22, 2023 @05:31AM (#36429781)
I'm going to start using this word :D
Re:Reading Log for Effective C: An Introduction to Professio... by bcrl on Thursday June 22, 2023 @11:29AM (#36433670)
That's a different book than the one I was referring to. I was referring to The Annotated ANSI C Standard: American National Standard for Programming Languages-C : Ansi/Iso 9899-1990.
Re:Reading Log for Effective C: An Introduction to Professio... by nhatcher on Thursday June 22, 2023 @07:50AM (#36430696)
I learned C in the early 90's with one of Schildt books. I actually did learn something. So there is that. It has a place close to my heart but I have to agree with most. It's not a great book.

I wish I would have a couple of good examples at hand, though

Re:Reading Log for Effective C: An Introduction to Professio... by marginalia_nu on Thursday June 22, 2023 @04:50AM (#36429548)
The actual information is a bit out of date, and it's not a best practices manual or anything like that.

K&R's strength is its exceptional style. It's a real masterpiece in clarity, and sets a mark that most technical literature fails to pass.

Re:Reading Log for Effective C: An Introduction to Professio... by tmaly on Wednesday June 21, 2023 @10:21PM (#36427293)
I wonder why he finished the review. As soon as I determined it was average to poor, I would have stopped reading.
Re:Reading Log for Effective C: An Introduction to Professio... by chandlore on Wednesday June 21, 2023 @11:05PM (#36427564)
I found Modern C[1][2] to have more practical advice and much more detail than this book.

[1] https://gustedt.gitlabpages.inria.fr/modern-c/ [2] https://news.ycombinator.com/item?id=21006995

Re:Reading Log for Effective C: An Introduction to Professio... by Nezteb on Thursday June 22, 2023 @12:37AM (#36428052)
* * *
Re:Reading Log for Effective C: An Introduction to Professio... by qsort on Thursday June 22, 2023 @02:18AM (#36428581)
Modern C is the best thing you can read about C short of the ISO standard.
Re:Reading Log for Effective C: An Introduction to Professio... by gordian-not on Wednesday June 21, 2023 @11:48PM (#36427812)
I highly recommend Expert C Programming Deep C Secrets

Very dated but one of the best CS books I read, also has a lot of anecdotes about programming that are generally interesting

Re:Reading Log for Effective C: An Introduction to Professio... by boffinAudio on Thursday June 22, 2023 @06:19AM (#36430037)
This book is so good I bought multiple copies because whenever I loan it out, I never get it back.
Re:Reading Log for Effective C: An Introduction to Professio... by wkjagt on Thursday June 22, 2023 @07:19AM (#36430438)
This is one of my favorite books on C, also because of the sense of humor of the author.
Re:Reading Log for Effective C: An Introduction to Professio... by lionkor on Thursday June 22, 2023 @04:34AM (#36429450)
> it is not possible to understand the C language by just writing simple test programs to examine the behavior.

This is so well put, thank you.

> Integer types are unsigned by default, except for char.

unsigned by default? I'm pretty sure `int`, `long`, `short` and `long long` are signed by default.

Re:Reading Log for Effective C: An Introduction to Professio... by gpderetta on Thursday June 22, 2023 @05:29AM (#36429769)
and whether plain char is signed or unsigned is unspecified.
Re:Reading Log for Effective C: An Introduction to Professio... by pajko on Thursday June 22, 2023 @10:50AM (#36433028)
Actually it can be signed, unsigned or have a completely separate type which is neither signed char nor unsigned char.
Re:Reading Log for Effective C: An Introduction to Professio... by gpderetta on Thursday June 22, 2023 @11:14AM (#36433409)
Well, I meant that char can either be a signed or unsigned integer type. It is always a distinct type form either signed char or unsigned char.
Re:Reading Log for Effective C: An Introduction to Professio... by elcapitan on Thursday June 22, 2023 @06:56AM (#36430286)
O'Reilly recently published "Fluent C" (apparently inspired by the "Fluent Python", which I love). Any opinions on this one?