by hoodoof · 11y ago · 0 comments
Zed Shaw, whilst his approach to certain issues may be questionable, is not "a writer rather than an engineer".
Zed is known as one of the most prolific and capable software engineers around and I have heard his C code for Mongrel 2 server https://github.com/zedshaw/mongrel2 described as being amongst some of the best examples of C code to study, learn and understand (trying to find the link that said that). I hold his work in high regard.
I don't agree with everything that Zed does and think it's a pity that his combative and dogmatic nature detracts from the core message about his work, but the author of this blog post is off track if he is trying to suggest that Zed doesn't know what he is doing and is "a writer" rather than "a software engineer". Zed is a (cantankerous) software engineer and a writer.
The attempt to discredit Zed's credentials just discredits the blog post and its author. When criticizing, criticize the work rather than the person.
And all of the posts pointing this out all disclaim that "while they don't agree with Zed about some things..."
It's just kind of sad from a rhetorical perspective.
It's clear that the guy who wrote this post doesn't agree with Zed's pedagogical style, but that doesn't make Zed's book wrong in detail or approach. It just means this guy doesn't agree with the style. And he's not upfront about it either due to a lack of introspection or forthrightness.
Zed also made many completely unjustified attacks on the K & R book, which is a well-written, easy to read book which introducse C concepts in a clear and readable way. Even if this was justified (and it's really, really not), that all belonged as a separate blog article rather than as part of an alleged "tutorial."
Finally Zed published a "rebuttal" to all of this in which he basically says that C sucks, is not worth learning, and he's learning Go. So the author quite reasonably asks, why would you want to learn C from someone who doesn't like the language or think it's worth learning?
I think we can all agree that Go (or some other high level language) probably is the better choice for most projects. But after all, there are still many places where C will continue to be used like the Linux kernel. Those people would be much better off reading K&R, as old as it is, than anything Zed has written. And his attacks on the K&R authors are just sad.
In the discussion of C strings, the author is arguing that Zed's arguments are nonsensical, maybe even objectively wrong. I write a lot of C, and the author is right in this case about C strings and undefined operations. In C you must arrange your code so that you always supply valid input to functions, there is no way around it, and it is perfectly safe once you do so.
I'd rather see discussion of the actual arguments, rather than complaints about the article's tone. :)
And that's why this is a style issue. Even if he disagrees with Zed's approach (and in particular how undefined behavior is discussed) it's just mendacious to claim that Zed isn't introducing his readers to the idea that one needs to be careful with strings and understand what kind of inputs one will receive.
This is a critically different behavior when compared to Ruby or Python where string management is done for you, and coming from the POV of someone who's familiar with those languages... Zed's approach makes sense. Especially when the alternative being suggested is "you absolutely must go read the C spec and K&RC".
They also value the war/being right/the point more highly than they value maintenance of positive human relationship.
What they don't understand is that people forget the issue and remember the grace (or not) with which you handled it.
Often they are not very good at empathizing with others and find it hard to imagine what it is like to be someone else interacting with them.
I know cause I am one, hopefully reformed.
I wonder if it's simply a case of:
1. Zed Shaw is controversial on HN
2. I know, I'll write a post that disses Zed Shaw
3. ???
4. Profit!
The article seemed a little off to me, and I thought HN would enjoy picking it apart
He didn't say Zed wasn't an engineer. He just said that he isn't a writer so the article will be written in an engineering voice.
People do the same things with presentations. "Sorry, I'm not a public speaker, so this might suck."
A lot of really smart people are cantankerous, and often they can afford to be.
My understanding of his approach to teaching is that it's based getting people to do things that bring results and then getting them to understand why after - which I think is a perfectly sensible one for beginners
When you're cooking, you follow a recipe. When you are learning to be a cook, you graduate to figuring out why you do it the way the recipe did.
And when you get really good, you start saying things like "Well, I wouldn't teach people to cook THAT way! That's wrong!"
:)
His own words, strictly read, imply that:
- Shaw is a writer;
- The author is not a writer;
- The author is an engineer.
It doesn't imply anything either way about Shaw being an engineer.By implication, Zed's book is not written from the POV of an engineer (otherwise why would this be worth noting in any way shape or form? The topic under discussion is already software engineering).