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
Show all comments
Showing thread 1 of 92
It was my first introduction to rust and the book was quite enjoyable. It starts off with teaching you the very basics of a command line (what it means to exit, true, or false, etc) and each chapter has you recreate a popular command line tool (like grep, cal, tail, wc) while introducing a new rust concept.
The book also does TDD, test driven design, by first teaching you how to create these tests then in subsequent chapters having the tests prewritten for you.
It's definitely worth a look, the author has a great writing style as well that isn't as monotonous as most programming books I've read.
[1] https://www.oreilly.com/library/view/command-line-rust/97810...
edit: Based on your "It was my first introduction to rust" comment I think maybe you meant programming beginners?
The book basically uses the crate clap to create all the CLTs, along with specific crates for regex and creating ascii tables for the cal clone.
Many of the books being suggested in the other comments are available as well (will definitely start Hands-On Rust because it seems very cool, and Practical Common Lisp shortly afterwards).
Out of all the "tutorial" offerings I only pay for three services:
O'Reilly (four years so far)
Educative.io (two years)
Frontendmasters (eight years)
Every year I test out other services (pluralsight, lynda/linkedin learning, egghead, etc) but outside of one or three core offerings they don't seem to be a good value for what I want.
Continue this thread — 1 reply
Continue this thread — 1 reply