r/C_Programming • • Aug 27 '24

What is the best way to learn C today — by way of From Nand To Tetris without programming knowledge?

Reddit's oft asked What is the best way to learn C today comes with the consistent answer from @wsppan , which includes:

  1. Read Code: The Hidden Language of Computer Hardware and Software

  2. Watch Exploring How Computers Work

  3. Watch all 41 videos of A Crash Course in Computer Science

  4. Take the Build a Modern Computer from First Principles: From Nand to Tetris (Project-Centered Course)

  5. Take the CS50: Introduction to Computer Science course.

  6. Grab a copy of C programming: A Modern Approach and use it as your main course on C.

  7. Follow this Tutorial On Pointers And Arrays In C

[Source]

Per Step 4: From Nand to Tetris is the first hands-on portion of the process. Projects 1-5 required no prior knowledge; however, projects 6 and 7 (and assumably some later material) call for the use of higher-level languages.

.

Question:

Can anyone specify any sub-steps of what best to learn to be able to progress further with this course, if this is the intended path? My goal was to bottom-up to C from nothing, following only these steps. [The material so far has been great.]

.

Update:

Per your comments (thank you), I'm going to jump from Step 4 to Steps 5 and 6 and come back to 4 after I know a higher level language.

32 Upvotes

25 comments sorted by

View all comments

2

u/Poddster Aug 28 '24 edited Oct 23 '26

I have a suspiciously similar stock answer I've been using for a few years now (with the occasional side-quest of recommending Petzold's Code whenever possible)*, but I'm always sure to point out it's about learning about computers and computer architecture, not about programming. That list won't really teach you to program, though it will help you understand what you and the computer are doing when you do the magic programming dance. In fact nand2tetris is intended as a 3rd/4th year university capstone course and students are expected to now how to program to take it.

A good way to learn C these days is CS50. It has a decent set of lectures, reading material and supporting exercises. The exercises are important as programming is a craft, and you get better at it with practice, practice, practice.

It can be quite confusing googling that because there's various paid and unpaid ways to take it. The official unpaid way is https://cs50.harvard.edu/x/ , and you can find the support sub on /r/cs50.

* Weirdly, someone commented on one of my 2 year old answers today! What a strange coincidence.

2

u/itskando Aug 29 '24

u/MisterJmeister recommended CS50 above as well. I'll skip u/wsppan's Step 4 for now and move onto their Steps 5 and 6 (the first of which is CS50). Thank you : j

2

u/wsppan Aug 29 '24

Nothing suspicious. I've been posting my stock answer for many years. At least since 2015, when I had to learn C fast when a legacy app was dumped on my app and found these resources and this approach that finally worked for me. These resources are nothing new and frequently mentioned and float to the top on most online searches.

-1

u/MisterJmeister Aug 28 '24

Again, with this bad advice

1

u/Poddster Aug 28 '24

What's bad about CS50?

0

u/MisterJmeister Aug 30 '24

Your stock answer is bad.

Learning with CS50 is great. Your other advice, however, should be ignored.

Yes, computer architecture is important, but Nand2tetris builds atop of prerequisite courses and assumes you know programming. It’s a decent fun and easy course for high schoolers..

Your suggestion of the Code book and Nand2Tetris is redundant. The code book is good for hobbyists and layman, but if you’re serious, there’s much better books (and courses if videos are your thing) that are available. Frankly, the CS course you provided is intended so much for the laymen that it borders on un-actionable for serious programming (it’s also not really computer science). The other resources you’ve mentioned are great supplemental material. Ben eater even admits it himself.

There’s great courses that cover these topics deeply and some are even free online!

1

u/Poddster Aug 31 '24 edited Aug 31 '24

Yes, computer architecture is important, but Nand2tetris builds atop of prerequisite courses and assumes you know programming.

The answer is for people looking to learn about computer architecture, not programming, as stated in my previous comment and in the answer itself.

It’s a decent fun and easy course for high schoolers..

nand2tetris is intended to be a capstone course for university students, it's not really a course aimed at high schoolers.

Your suggestion of the Code book and Nand2Tetris is redundant. The code book is good for hobbyists and layman,

From the answer:

There's a lot of overlap in those resources, but they get progressively more technical. Start at the top and work your way down. The Petzold book alone is worth its weight in gold for the general reader trying to understand computation. Most people can read that and will be completely satisfied when it comes to learning about computers. A second edition has recently been released after 20 years. The first edition is absolutely fine to read as well if you were to come across it. It's basically the same, but stops at 80% of the 2nd edition. Assuming you don't wish to buy it from those links above, it's easy to find via digital libraries on google :)

Emphases is in the original

there’s much better books (and courses if videos are your thing) that are available.

Do you have a list of resources that you think are better if lay people and students want to dip into computer architecture?

Frankly, the CS course you provided is intended so much for the laymen that it borders on un-actionable for serious programming (it’s also not really computer science).

I provide no CS courses. They're not intended to be CS course resources. They're intended for lay people and students. They're not meant to teach people about programming. And it's not intended to be computer science.

All of this is mentioned in the previous comments and in the answer itself, so I'm surprised to see you even bring them up

There’s great courses that cover these topics deeply and some are even free online!

I'm glad you too the effort to link to them, too

The answers I've provided have helped a lot of people over the years, both online and off, especially the intended audience, so I don't necessarily think it's bad. I'm more than open to improving the answer, but all of the feedback you've given is apparently talking about some other answer, so it's not very useful. The only thing that seems to be "bad" here is both your attitude and your reading comprehension, as you're somehow under the illusion this is anything to do with computer science and computer programming.

0

u/MisterJmeister Sep 02 '24

I assure you that nand2tetris is meant at an introduction to computer architecture and not a capstone. It’s fairly basic, but a great course nonetheless.

Your redundant recommendations are just bad for learning and goes against well principled researched on pedagogy. It’s not worth arguing.

I reccomend:

Digital Design and Computer Architecture Computer Architecture: A Quanitative Approach

1

u/Poddster Sep 02 '24

I assure you that nand2tetris is meant at an introduction to computer architecture and not a capstone. It’s fairly basic, but a great course nonetheless.

And I can assure you that the website, the author in interviews, and the textbook itself all refer to it as a capstone course. Some universities even teach it in this capacity.

Your redundant recommendations are just bad for learning and goes against well principled researched on pedagogy. It’s not worth arguing.

Empty and vague. You're just trying to wriggle out of providing an answer.

I reccomend:

Digital Design and Computer Architecture
Computer Architecture: A Quanitative Approach

I've not read the first one, but the second one, a Patterson and Hennessy tome, seems complete overkill to recommend to laymen with an interest towards computer architecture. Yes, it's the quintessential architecture textbooks used by universities across the globe, but that's the appropriate setting for it, as it usually goes hand-in-hand with lectures, labs, and coursework that all follow that book. Just reading it left-to-right, top-to-bottom is a pretty cruel thing to wish upon someone posting a thread on reddit saying "How do I learn about how computers work / are built?".

2

u/MisterJmeister Sep 06 '24 edited Sep 06 '24

RE: Capstone

It’s advertised as an introduction and the topics are aimed as an introduction material. There’s no such course that I see that are capstone. I’d be surprised if it were.

RE: Pedagogy

It’s well researched that this level of redundancy just negatively affects learning.. Spamming a bunch of courses and books isn’t helpful either, you’re just needlessly subjecting people to Hick’s law.

RE: My recommendation

I wouldn’t expect someone to read Computer Architecture: A Quantitative Approach as if it were novel. That’s not how you read textbooks. You do exercises, projects, research, and so on.

RE: The Original Question

The OP was initially confused about the list that was obviously unvetted. You were responding to someone who wanted to know about how computers work. Nowhere were laymen introduced.

Just stop giving bad advice. Please.