Live data from Hacker News

Ask HN: What open source project, in your opinion, has the highest code quality?

news.ycombinator.com

61–70 of 294 posts

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#61
post #40

SQLite. and for this reason alone! https://www.sqlite.org/testing.html As of version 3.23.0 (2018-04-02), the SQLite library consists of approximately 128.9 KSLOC of C code. (KSLOC means thousands of "Source Lines Of Code" or, in other words, lines of code excluding blank lines and comments.) By comparison, the project has 711 times as much test code and test scripts - 91772.0 KSLOC.

Tangent: I always thought SLOC means "significant lines of code". Since "code" is a shortand for "source code", expanding SLOC as "source lines of [source] code" makes little sense, IMO.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#63
post #54
post #40

SQLite. and for this reason alone! https://www.sqlite.org/testing.html As of version 3.23.0 (2018-04-02), the SQLite library consists of approximately 128.9 KSLOC of C code. (KSLOC means thousands of "Source Lines Of Code" or, in other words, lines of code excluding blank lines and comments.) By comparison, the project has 711 times as much test code and test scripts - 91772.0 KSLOC.

Inversely, this is counteracted by the logic to not use Git: https://sqlite.org/whynotgit.html

But to be honest, this is mostly fair criticism. Not sure why they need some of those things, but if they need it, then it's fine.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#65

LLVM and associated projects such as clang. Bazel is good too. OkHttp and Retrofit by Square.

LLVM is remarkable; the domain is both difficult and critical. Still, the code is consistent enough that I can often guess how things work based on what I think would be reasonable!

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#66

I was going to say the GNU version of /bin/false and /bin/true, but I actually took a look at the source and it is terrible.

The original /bin/true is probably the highest quality code ever written, but unfortunately I don’t think the license is OSI approved: http://trillian.mit.edu/~jc/%3B-)/ATT_Copyright_true.html

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#67
post #2

Dolphin Emulator https://dolphin-emu.org/

I've never installed it, or read the code, but their progress-report writeups are fascinating to me.

e.g. The most recent https://dolphin-emu.org/blog/2018/09/01/dolphin-progress-rep...

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#68
This is not necessarily about the code, but I've been really impressed for a while by the lodash project and its maintainer's dedication to constantly keep the number of open issues at 0. Any issues get dealt with at record speed, it's quite a sight to see.

https://github.com/lodash/lodash/issues

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#69
Just wanted to mention some bias in successful open source projects: they are often structured as a number of similar plug-in pieces, like youtube-dl for different video publishers.

This is great for open source, because you can easily discover and navigate to the part you want, and change it. You might need to understand the plugin interface - or you might not. This flat architecture makes it easy for people to contribute, an important aspect of a successful open source project.

But it's not the ideal architecture for every project. In some cases, a cleverer, harder to understand approach is more elegant, shorter, more efficient, simpler.

Of course... one might argue that ease of understanding is more important than anything else.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#70
The open source code I know from web development has to be fixed with various hacks - PHP and the frontend javascript that goes with it. Therefore the code I know is not 'highest code quality'. If it was 'highest code quality' then I would not know the code.

Therefore the highest code quality is likely to be in projects where I do not have to go under the hood, e.g. the Chromium project where all contributors are vastly more educated and capable than myself.

Post reply on HN