Live data from Hacker News

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

news.ycombinator.com

81–90 of 294 posts

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

#81

Python core libraries have great code. You can open pretty much any module and be able to understand the source without much context.

I don't know how you can say this. The standard lib isn't even very pythonic, let alone "great" along other dimensions.

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

#82
post #38

I hold the source code of Go standard library & base distribution (i.e. compiler, etc.) in very high regard. Especially the standard library is, in my opinion, stunningly easy to read, explore and understand, while at the same time being well thought through, easy to use (great and astonishingly well documented APIs), of very good performance, and with huge amounts of (also well readable!) tests. The compiler (includ…

> standard library is, in my opinion, stunningly easy to read

Reading this brought to mind the JDK. All well structured, neatly formatted and well documented. I’ll often just click thru to the source to get the nitty-gritty on a function, I rarely need to consult the actual docs!

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

#83
ARM mbed TLS [1], Amazon S2N [2], nginx [3] have a super consistent code style throughout and are prime examples of how C application programming should be done (in my opinion).

[1] https://github.com/ARMmbed/mbedtls

[2] https://github.com/awslabs/s2n

[3] https://github.com/nginx/nginx

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

#85
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.

"Source lines" includes lines with comments, empty lines and code. Source lines of code... Specifies only lines with code, no comments

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

#88
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.

And all that is public domain: https://www.sqlite.org/copyright.html

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

#89
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.

So you measure good code by the number of test lines?
Post reply on HN