Ask HN: What open source project, in your opinion, has the highest code quality?
191–200 of 294 posts
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#192Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#193Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#194The Linux kernel of course. In userland I have to say lib QT. I've used a lot of APIs and QT is always a pleasure to work with.
The only thing I can say is that with this in mind it's actually a lot better than I'd expect - testament to Linus's iron fist, perhaps.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#195Earlier quoted context omitted.
Though core has some bad API due to maintaining backwards compatibility a lot of the third party libraries like requests, Flask have great focus on API design and code quality. The authors have good quality repos : https://github.com/kennethreitz https://github.com/mitsuhiko
I agree with Flask, much more readable code than Django for example. I would also add Django Rest Framework (and Tom Christie) to the list.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#196Granted I haven't read much open source code but when I was working in Flask, I found the source code to be awesomely clear and well-documented. I actually learned quite a bit about Python by reading Flask code. Also, no-one could explain "g" in a way that made sense, but the source code made it obvious. Would recommend reading it if you're into Python at all.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#197my first experience with high quality code was with tge quake2 engine. i was both amazed by the simplicity of the architecture (a huge single event loop), and the attention to code presentation and indentation.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#198Earlier quoted context omitted.
They actually have to test to that degree to follow aviation standards (DO-178b [0]) because they're used in aviation equipment. Dr. Hipp said he started really following it when Android came out and included SQLite and suddenly there were 200M mobile SQLite users finding edge cases: https://youtu.be/Jib2AmRb_rk?t=3413 Lightly edited transcript here: > It made a huge difference. That that was when Android was just ki…
SQlite is very high quality software, but they use DO-178b "inspired" testing process. As far as I know they don't have version of software that is or can be used in safety critical parts despite their boasting. They say in their site that: > Airbus confirms that SQLite is being used in the flight software for the A350 XWB family of aircraft. Flight software does not imply safety critical parts of avionics. It can be…
While all that was happening 10+ years ago, I learned about DO-178B. I have a copy of the DO-178B spec within arms reach. And I found that, unlike most other "quality" standards I have encountered, DO-178B is actually useful for improving quality.
I originally developed the TH3 test suite for SQLite with the idea that I could sell it to companies interested in using SQLite in safety-critical applications, and thereby help pay for the open-source side of SQLite. That plan didn't work out as nobody ever bought it. But TH3 and the discipline of 100% MC/DC testing was and continues to be enormously helpful in keeping bugs out of SQLite, and so TH3 and all the other DO-178B-inspired testing and refactoring of SQLite has turned out to be well worth the thousands of hours of effort invested.
The SQLite project is not 100% DO-178B compliant. We have gotten slack on some of the more mundane paperwork aspects. Also, we aggressively optimize the SQLite code base for performance, whereas in a real safety-critical application the focus would be on extreme simplicity at the cost of reduced performance.
However, if some company does call us tomorrow and says that they want to purchase a complete set of DO-178B/C Level-A certification artifacts from us, I think we could deliver that with a few months of focused effort.