4 ms·
I found the writing style, the presentation as a "naive beginner" discovering facts about programming by writing test programs, to be insufferable. Eg > Okay,
by edflsafoiewq 4y ago
I found the writing style, the presentation as a "naive beginner" discovering facts about programming by writing test programs, to be insufferable. Eg
> Okay, so, argv is an array of addresses, and at those addresses, there is.. string data. Something like that:
> It looks like every argument is terminated by the value 0. Indeed, C has null-terminated strings.
> If I'm, uh, reading this correctly, "é" is not a char, it's actually two chars in a trenchcoat. That seems... strange.
The inclusion of all the "naive test programs" serves no purpose but to inflate the article's length to ridiculous levels.
- ParetoOptimal 4y agoI'm the opposite. As someone less familiar with C style string manipulation, all of these examples to map to my current knowledge are great. Lots of complete working examples let me test my working mental model I develop while learning too.
- disgruntledphd2 4y agoYeah I learned so much from this article. Generally I find the OP pretty verbose and not that interesting but I really loved this one. It may or may not be relevant that I've been reading TAOCP assembly programs recently so may be thinking more in terms of pointers.
- mjw1007 4y agoI think the article's introduction is unhelpful. If it made it clearer early on who the intended audience is, it would do better. (I think the intended audience is something like "people who want to read about things they already sort-of-know, set out as a nice story to help everything fit into place". The apparent audience of "people who are comfortable reading C but don't know that C strings are null-terminated" is presumably a rather small one.)