Ask HN: “Write your own” or “Build your own” software projects
576 pointsI am looking for writings/tutorials/videos which describe a specific technology or feature by implementing them, ideally in no more than few thousands lines of code (and not just 10-20 line code snippets). Idea is to teach about underlying technology by a hands-on project, which is not overwhelming like trying to implement full-feature game engine and yet captures the essence of technology. Some examples are -
* Build a simple database (https://cstack.github.io/db_tutorial/)
* Containers in 500 lines (https://blog.lizzie.io/linux-containers-in-500-loc.html)
* Malloc tutorial (https://danluu.com/malloc-tutorial/)
* Nativecoin - build your own crypto-currency (https://lhartikk.github.io/)
I'm sure there are great such projects/tutorials in domains like networking, filesystem, databases, compiler, web design, messaging, game design, fintech, etc. If you have come across such writings/projects, kindly share.
Comments (82) 50 threads
Earlier commentshttps://github.com/kanaka/mal
Lots of examples across 72 languages.
The Architecture of Open Source Applications
500 Lines or Less
http://aosabook.org/en/index.html
You'll be surprised at how nice it is to just fully understand everything without a mess of libraries getting in the way and the resulting project will be perfectly tailored to your needs.
On the other hand, it was enough to get me off the ground for my lexer and write a parser that wasn't entirely dumb.
And just FYI, the interpreter we build in the book ends up with ~3900 lines, including the full test suite.
All comments shown.
Couldn't load more comments. Check your connection and try again.