Lurker News
It is common knowledge that when first learning programming, one should start with small projects to build something real rather than learning rules and syntax of the language only.

Which are some of the best books that take a project based approach in teaching programming to a beginner?

Comments (203) 92 threads

Earlier comments
ajoseps1 reply#
This book is still in progress but I've gone through some of the chapters and have enjoyed it. Rust from the Ground Up: https://leanpub.com/rust-from-the-ground-up

I was looking for a book that had offline projects I can work on while on flights, and this book focuses on rebuilding linux utilities using rust. The other nice part is that you get a better understanding of linux internals.
I believe the author is also responsive on the rust subreddit.

mprovost1 reply#
Thanks for the kind words! I'm desperately polishing the next chapter for publication...
ajoseps#
great to see you on HN as well! I haven't revisited the book in a while but I really liked the chapters I did work on. I have another flight coming up soon so maybe I'll try another chapter :)
weird_user1 reply#
For beginners, Daniel Holden's Build Your Own Lisp[1] is excellent material for learning C. It's a very succinct book.

For intermediate programmers, Build Your Own Redis[2] is a WIP book I am currently writing.
[1] https://buildyourownlisp.com/
[2] https://build-your-own.org/

tejohnso#
Build your own redis sounds like a good idea, but I found the title confusing as C and C++ are different languages and you're using the old "C/C++" phrasing. I immediately wondered, "well, which is it?"

So I dug into it a bit, and from the introduction I see it's "mostly C with some C++ features". But if you're going to require C++ features/libraries and a C++ compiler, then it's not C. So why not just say it's C++? I guess another way to ask is: what makes it "mostly C"? Is it a market capture decision? Is there some interesting language tradeoff involved?

patchorang1 reply#
Not a book and webdev focused, but I've been doing https://fullstackopen.com/en/ and it's been great.

The chapters are structured so you are building 2 projects at once. One where you follow along with the chapter material with example code and explanations. And a second in the exercises.
I really like it because it introduces the concepts in the context of a project, but you can't get stuck because the code is there too. Then you need to really apply it in the exercises on your own project, without the example code.

kirso#
Its a great resource, but not for total beginners, however if you know basics of html, css and javascript this is hands-down one of the best resources out there.

Load more comments