Earlier quoted context omitted.
I'd agree, but only as far as aesthetics go. When you have to understand the time complexity and runtime characteristics of the standard library sorting algorithms, I think Go does a very bad job - the standard `sort.Sort(data sort.Interface)` will run poorly if the data is already mostly sorted. I expect these kinds of things to be documented properly.
I was pretty certain most libraries shuffle then quicksort. No need for documentation. Does go not do this?
Ask HN: What open source project, in your opinion, has the highest code quality?
171–180 of 294 posts
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#172Earlier quoted context omitted.
How is the coreutils true faster? I would expect the openbsd true to be the fastest, it doesn't need to spawn a subshell and it doesn't do more than the posix specification requires (afaik --help/--version should be ignored).
Experience shows it's faster. It's just weird, but it's like that. time { for i in $(seq 1 10000); do /path/to/true; done; }
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#173Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#174OpenBSD and Co. (OpenSSH, etc.) * https://cvsweb.openbsd.org/src/ * https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/ * https://www.libressl.org/ * https://cvsweb.openbsd.org/src/usr.sbin/ntpd/
Again I mostly admire OpenBSD. But OpenNTPD is not the best example of their work.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#175Earlier quoted context omitted.
I'd agree, but only as far as aesthetics go. When you have to understand the time complexity and runtime characteristics of the standard library sorting algorithms, I think Go does a very bad job - the standard `sort.Sort(data sort.Interface)` will run poorly if the data is already mostly sorted. I expect these kinds of things to be documented properly.
I was pretty certain most libraries shuffle then quicksort. No need for documentation. Does go not do this?
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#176Lua. It's has everything a good C project should have: small size, simple build system, portability by using the simplest constructs and not ifdefs, a clear and well define scope that none dares trespassing.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#177One look at any of the assembly files and you can get a sense of how properly organized the source code is.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#178Its older than some HN posters, but the GPLed DOOM source code was one I liked. The performance reached by the game was considered impossible until Carmack did show us otherwise. So I expected lots of ASM and weird hacks, especially as compiler optimization wasnt as good as it is today. Surprise, surprise, the thing was easy to read, easy to get going, easy to port, reasonablye documented . It has shown me what a goo…
These 666 forks can't be a coincidence, right?
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#179I 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…
Kubernetes is another great example of a project that is so unbelievably complex in its function, it should be completely impenetrable to anyone who isn't a language expert. But, go check it out; its certainly complex and huge, but actually grokable.
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#180SQLite. 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.
Automated testing is useful and good. But I really feel it's reached a lever of fetishisation that is quite concerning. Testing code is code which needs to be written, read, maintained, refactored. Very often nowadays I have to wade through tests which test nothing useful, except syntax. Even worse, with developers who adopt the mock-everything approach, I often find tests which only verify that the implementation is…