I've spent a lot of time reading C sources. Standouts are nginx, mbed TLS, Amazon s2n. Clean coding styles, consistent in checking function return values (very important! significant source of vulnerabilities in C software), comments where due, no hacks. Among the most convoluted source codes I've read is Tor. It works (apparently), and it isn't even very insecure per se (the code is littered with hard asserts that w…
Ask HN: What are some well written/engineered open source software?
41–50 of 72 posts
Re: Ask HN: What are some well written/engineered open source software?
#42https://github.com/prestodb/presto
I have learned a lot from reading the source code and watching it develop. It is written in modern Java 8. The authors are obviously experts of the language, JVM and ecosystem. Since it is an MPP SQL engine performance is very important. The authors have been able to strike a good balance between performance and clean abstractions. I have also learned a lot about how to evolve a product. Large features are added iteratively. In my own code I often found myself going from Feature 1.0 -> Feature 2.0. Following Presto PRs, I have seen how for large features they go from Feature 1.0 -> Feature 1.1 -> Feature 1.2 -> ... Feature 2.0 very quickly. This is much more difficult than it sounds. How can I implement 10% of a feature, still have it provide benefits and still be able to ship it? I have seen how this technique allows for code to make it into production quickly where it is validated and hardened. In some ways it reminds me of this: https://storify.com/jrauser/on-the-big-rewrite-and-bezos-as-.... You shouldn't be asking for a rewrite. Know where you want to go and carefully plan small steps from here to there.
Re: Ask HN: What are some well written/engineered open source software?
#43Anything written by djb ( https://en.wikipedia.org/wiki/Daniel_J._Bernstein ): qmail, djbdns, ucspi-tcp, daemontools, etc.
Re: Ask HN: What are some well written/engineered open source software?
#44Chromium edit: https://www.chromium.org/developers/design-documents
Re: Ask HN: What are some well written/engineered open source software?
#45I learned a ridiculous amount from reading the source code to TeX (https://www.amazon.com/Computers-Typesetting-B-TeX-Program/d...) but it is written in a very 1970s style.
Re: Ask HN: What are some well written/engineered open source software?
#46Re: Ask HN: What are some well written/engineered open source software?
#47Re: Ask HN: What are some well written/engineered open source software?
#48Re: Ask HN: What are some well written/engineered open source software?
#49It shall be helpful in learning Object Oriented Design using C programming and GObject.
Re: Ask HN: What are some well written/engineered open source software?
#50I've learned quite a bit from reading through the Laravel source - https://github.com/illuminate edit for details: The authors are quite meticulous (notoriously, every comment in a multi-line comment is 3 characters less than the previous) and stick to the "convention over configuration" mantra no doubt inspired by Ruby on Rails. It's interesting to see how they create abstractions to simplify so many common web dev…