News for hackers. Stuff that matters.

Ask HN: What are some books where the reader learns by building projects?

2021 Edition. This is a continuation of the previous two threads which can be found here:

https://news.ycombinator.com/item?id=22299180

https://news.ycombinator.com/item?id=13660086

Other resources:

https://github.com/danistefanovic/build-your-own-x

https://github.com/AlgoryL/Projects-from-Scratch

https://github.com/tuvtran/project-based-learning

( 18 comments | 53 points | on HN )
Re:Ask HN: What are some books where the reader learns by bu... by synacksynack on Friday February 05, 2021 @04:47PM (#26041643)
Not a book, but https://hackattic.com/ is in this vein. It's not the standard coding challenge website it may seem to be, instead a collection of small projects representative of the core ideas underlying "real world" systems. It provides just enough scaffolding and direction to get one started down the path of autodidactic exploration; satisfying and enlightening without being frustrating.
Re:Ask HN: What are some books where the reader learns by bu... by bradtheappguy on Friday February 05, 2021 @03:38PM (#26040883)
_Build Your Own Z80 Computer_ by Steve Ciarcia is fantastic. You will learn the basics of computer architecture, digital logic, assembly language, power supply design, and a basic operating system. Even though it's a book from the early 80s using chips from the late 70s the parts are still available.I believe the author has posted a pdf of the book on his website, but there are used copies on Amazon and Ebay and it's a lot of fun doing a project like this without using the internet by relying on nothing but the paperback and a mouser catalog. https://www.amazon.com/Build-Your-Own-Z80-Computer/dp/007010... https://archive.org/details/BuildYourOwnZ80ComputerSteveCiar...
Re:Ask HN: What are some books where the reader learns by bu... by Jtsummers on Friday February 05, 2021 @02:13PM (#26040047)
The Elements of Computing Systems is being discussed in a front-page thread at the moment (https://news.ycombinator.com/item?id=26036790).
Re:Ask HN: What are some books where the reader learns by bu... by diehunde on Friday February 05, 2021 @09:55PM (#26043700)
- Writing an interpreter in Go [1]

- Writing a compiler in Go [2]

- Build a distributed service (append log) in Go [3]

[1] https://interpreterbook.com/

[2] https://compilerbook.com/

[3] https://pragprog.com/titles/tjgo/distributed-services-with-g...

Re:Ask HN: What are some books where the reader learns by bu... by rustyemu on Friday February 05, 2021 @02:41PM (#26040348)
I recommend The Ray Tracer Challenge: https://pragprog.com/titles/jbtracer/the-ray-tracer-challeng...

Guides you through a language-agnostic test-driven development of a primitive ray tracer. Could be done in a weekend or so of persistent work. And at the end you can bask in the glory of your fans running at 100% during rendering!

Re:Ask HN: What are some books where the reader learns by bu... by wanderingmoose on Friday February 05, 2021 @04:15PM (#26041302)
+1 This book is excellent. Going through it w/ my daughter as a learning project now. I've worked on renderers in the games and vfx industries, and this is a very satisfying and relatively easy introduction.

Once finished, you can jump in to PBRT https://pbrt.org/ which has a new update coming out for rendering on gpu.

Re:Ask HN: What are some books where the reader learns by bu... by TooSmugToFail on Friday February 05, 2021 @05:12PM (#26041874)
At what age have you started working with your kid to get her into coding, and what would you suggest as the first step?
Re:Ask HN: What are some books where the reader learns by bu... by asicsp on Saturday February 06, 2021 @06:58AM (#26045974)
For Python:

* Tiny Python Projects (https://www.manning.com/books/tiny-python-projects) by Ken Youens-Clark

* Impractical Python Projects (https://nostarch.com/impracticalpythonprojects) and Real world Python (https://nostarch.com/real-world-python) by Lee Vaughan

This discussion thread is nice if you want to explore what people are automating using Python: https://www.reddit.com/r/learnpython/comments/k5k1h0/what_do...

Re:Ask HN: What are some books where the reader learns by bu... by brianjunyinchan on Friday February 05, 2021 @01:44PM (#26039737)
52 Random Weekend Projects: For Budding Inventors and Backyard Builders

https://www.amazon.com/Garage-Science-Incredible-Projects-Ba...

Re:Ask HN: What are some books where the reader learns by bu... by livre on Friday February 05, 2021 @05:56PM (#26042282)
Let's Build a Compiler[1] (old book but still good, you can use Free Pascal if you want to use a modern compiler).

[1] https://compilers.iecc.com/crenshaw/

Re:Ask HN: What are some books where the reader learns by bu... by sixhobbits on Friday February 05, 2021 @03:38PM (#26040874)
We did https://codewithrepl.it recently which is a collection of beginner and intermediate Python projects - would love any feedback if you try them out!
Re:Ask HN: What are some books where the reader learns by bu... by lrPrentice1 on Friday February 05, 2021 @03:26PM (#26040759)
https://builditwith.com/nitro — Seven web application projects from corporate message board to stock ticker. Learn Erlang as you go.
Re:Ask HN: What are some books where the reader learns by bu... by fokinsean on Friday February 05, 2021 @05:54PM (#26042265)
Have you done it?

Elixir has interested me but I'm not sure if I want to learn Erlang.

Re:Ask HN: What are some books where the reader learns by bu... by abhijat on Sunday February 07, 2021 @11:20AM (#26055975)
"Hands on rust" has a couple of game based projects that you work with using rust https://www.pragprog.com/titles/hwrust/hands-on-rust/ - one is a flappy dragon game and the other is a dungeon crawler.
Re:Ask HN: What are some books where the reader learns by bu... by DataCrayon on Saturday February 06, 2021 @09:36PM (#26052136)
Data is Beautiful, where each short section is on building a different visualisation with Python https://datacrayon.com/shop/product/data-is-beautiful/ (my book)
Re:Ask HN: What are some books where the reader learns by bu... by westurner on Friday February 05, 2021 @06:18PM (#26042447)
"Agile Web Development with Rails [6]" (2020) teaches TDD and agile in conjunction with a DRY, CoC, RAD web application framework: https://g.co/kgs/GNqnWV
Re:Ask HN: What are some books where the reader learns by bu... by tharne on Friday February 05, 2021 @02:30PM (#26040231)
_Python Crash Course_

This book is aimed squarely at beginners, but it's excellent for that purpose.

Re:Ask HN: What are some books where the reader learns by bu... by drivers99 on Friday February 05, 2021 @05:23PM (#26041970)
“Mazes for programmers” was a nice thing to read and then implement something from what you learned.