Ask HN: What are some books where the reader learns by building one project?
813 pointsI'm about halfway through 'Build You Own Lisp' and I'm really enjoying it. Each chapter builds on the last by adding something new to the same project (and thereby explaining some new concept). I find that the books I'm least likely to bail on are the ones that lead me through the building of one big project like this. What are some of the best titles in this little subgenre?
Comments (229) 107 threads
Earlier commentsExamples:
1. given a large file, or set of files, write a program/routine to count the number of times an arbitrary sequence of characters appears. No regular expressions or other pattern matching helpers from a library/sdk, you have to do it all yourself. This one is pretty small, but there's lots of opportunity for optimization.
2. build a link shortener service with some analytics/tracking.
3. write a simple tokenizer for whatever syntax/language you feel like. JSON is a super easy one.
4. write a little website crawler. multithread it. implement rate limiting (something more advanced than random sleeps; e.g. token bucket, etc...).
5. make a couple easy data structures yourself. If the language/platform you are working in has the same structure in an SDK (or there's a good open source one), write yours to the same interface and then run it through their test suite. e.g. linked lists, queues, etc...
It goes through lessons that build up to a pretty good interactive disk editor (DSKPATCH) written entirely in x86 assembly.
Its the book that got 12 year old me out of the BASIC ghetto.
I've never actually written assembly professionally, but the understanding of what's going on at the CPU level has been invaluable. You could probably run FreeDOS(http://www.freedos.org/) in a VM, looks like it comes with a couple different assemblers.
https://www.amazon.com/Retargetable-Compiler-Design-Implemen...
A most excellent grimoire.
You can learn how to build a todo list manager in Go.
This book is about building a webapp from scratch without using a framework.
All comments shown.
Couldn't load more comments. Check your connection and try again.