Live data from Hacker News

Ask HN: Zed Shaw's critique of K&R

news.ycombinator.com

1–10 of 22 posts

Ask HN: Zed Shaw's critique of K&R

#1
I've read of Zed Shaw's critique of K&R in "Learn C the Hard Way", and I've gathered that he had indeed raised an interesting range of issues, regardless of the backlash.

I've tried tracking that critique down to no avail. A link to Shaw's website that I found wasn't accessible,[0] nor was any archive.org copy of it.[1]

Does anyone happen to have a copy of or a link to it? I'd be interested in reading through it.

(Disclaimer: I'm not interested in refueling a debate, I just would like to read the critique or find out its salient points.)

[0] http://c.learncodethehardway.org/book/krcritique.html

[1] http://web.archive.org/web/*/c.learncodethehardway.org/book/krcritique.html

Re: Ask HN: Zed Shaw's critique of K&R

#3
I doubt my Google-fu is better than yours (and it looks like Zed has basically retracted what he said anyway by way of going so far to remove it from the Internet) but one of the salient points was definitely "some of the code in the book doesn't compile or do what it says it does."

Re: Ask HN: Zed Shaw's critique of K&R

#8
post #3

I doubt my Google-fu is better than yours (and it looks like Zed has basically retracted what he said anyway by way of going so far to remove it from the Internet) but one of the salient points was definitely "some of the code in the book doesn't compile or do what it says it does."

One of his criticisms was the (usual) critique of C's null-terminated char arrays (to be precise, that failure to include an null-terminator in a char array causes overflow, thus functions needed to be designed to accommodate such cases), and another was stylistic critique, one with which I agree with ZS, that optional curly braces should never be omitted, no matter how mundane.
Post reply on HN