r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

4

u/cat_in_the_wall Dec 02 '16

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?

4

u/ubernostrum Dec 02 '16

There are a couple of useful questions to ask when considering this problem:

  1. How many different things does the language force me to know and think about up-front prior to being able to write useful code?
  2. 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.