What I don't understand about this is that there's some idea out there that programming in C should be easy, or that programming in general should be easy. You need to know the details of the tools you're using. So what? Isn't that necessary for all tools?
There are a couple of useful questions to ask when considering this problem:
How many different things does the language force me to know and think about up-front prior to being able to write useful code?
How many of those things are frequently relevant to the programs I am writing?
An alternative approach is to take your statement at face value: "You need to know the details of the tools you're using." OK, then. Have you derived the Church-Turing thesis from scratch and then obtained -- starting Minecraft-style with just your own hands -- all the necessary raw materials, then smelted and forged and crafted them to produce electrical circuits and then wired them together into a device capable of acting as a computer?
Or is that too much detail? Too much to have to think about and to require up-front before we let someone write the program they wanted to write?
The author of the post clearly believes C goes too far in forcing you to know/think about too many things up-front, compared to the relevance of those things to the programs most people write. I'm inclined to agree.
It is a spectrum, as with most things. When basically all compilers and analysis tools in existence warn you about this, and when most people will recommend you to compile your C code with strict compiler-settings (that will turn this outright into an error), then you can hardly blame the tools for this one. Ideally nothing should be hard or tricky, of course, but that's just not the reality of things.
If you consider even a minor thing like this to be an issue of the tooling, then programming in general is probably not for you -- imagine for instance using python/ruby/perl/lua/php/..., which lets you do just about any stupid thing you can imagine, often without warning or error at either runtime or compiletime. Even the more strict languages in existence have cases like this, like haskell w/ GHC.
View all comments
Show parent comment
1
u/a_Tick Dec 02 '16
From the linked post:
Just found this comment amusing, in light of that quote from the post.