My favourite is "Practical Common Lisp" by Peter Seibel ( https://gigamonkeys.com/book/ ) Not only is the book free to read (although I would suggest to pay for it if you like it!) The code to parse binary files actually "inspired" my design of an actual production application which was very flexible, succinct and, most importantly, so fast I had to spend a lot of effort convincing people the numbers are actually tru…
Ask HN: Books that teach programming by building a series of small projects?
101–110 of 204 posts
Re: Ask HN: Books that teach programming by building a series of small projects?
#102My biggest gripe with all the project tutorials I’ve seen is that really quickly you get into a “ok I get what we’re doing” and then just copy the code they provide. At the end of the day you did zero mental workout because you didn’t have to figure out the code. I hope to find one of these that guides you but doesn’t give you the code immediately, but has a code answer key at the end or something. I get it that it’s…
Thinking of building something along those lines i.e. you can peek ahead if you really get stuck. Proj-based learning is really fun to both create and consume imo.
So maybe showing the building blocks and letting you use them for something. You could perhaps show 2 or 3 suggested projects that are built with the building blocks. You show the generic version of the blocks, and then you figure out how to tweak them to make one of the 2 or 3 suggested projects.
Sort of buying the legos and then showing what you could do with them. But building it is up to you.
Re: Ask HN: Books that teach programming by building a series of small projects?
#103While not for beginners, if you'd like to learn rust I recently finished "Command line Rust" [1]. 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…
Re: Ask HN: Books that teach programming by building a series of small projects?
#104This 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 r…
Re: Ask HN: Books that teach programming by building a series of small projects?
#105My biggest gripe with all the project tutorials I’ve seen is that really quickly you get into a “ok I get what we’re doing” and then just copy the code they provide. At the end of the day you did zero mental workout because you didn’t have to figure out the code. I hope to find one of these that guides you but doesn’t give you the code immediately, but has a code answer key at the end or something. I get it that it’s…
You will be forced to read more carefully and, more importantly, you will make typing mistakes. Hunting down your own mistake will teach you the subtleties of the syntax as well as further increase your understanding of the code.
For more advanced programmers, there is also the challenge of translating the code into another language entirely, which requires a actual semantic understanding of the code.
Also once the project is done, adding small additional bonus features will further deepen your understanding.
Re: Ask HN: Books that teach programming by building a series of small projects?
#106FREE https://leanpub.com/rubyisforfun - Ruby Is For Fun, I made the book so you do a lot of exercise. There is around 80 exercises in total.
Rewritten as a course:
Re: Ask HN: Books that teach programming by building a series of small projects?
#107Re: Ask HN: Books that teach programming by building a series of small projects?
#108This 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 r…
Thanks for the kind words! I'm desperately polishing the next chapter for publication...
Re: Ask HN: Books that teach programming by building a series of small projects?
#109If we're talking a complete beginner with maybe only "hello world" level skills I recommend the Lego BOOST set: https://www.lego.com/en-fi/product/boost-creative-toolbox-17... It teaches you step by step the basics of programming (loops, function calls etc) using a scratch-like programming language.