Ask HN: Books that teach programming by building a series of small projects?
473 pointsIt 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 commentsAvailable free online at https://third-bit.com/sdxjs/
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.
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/
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?
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.