Live data from Hacker News

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

news.ycombinator.com

201–210 of 294 posts

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

#201

Earlier quoted context omitted.

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…

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…

"They actually have to test to that degree to follow aviation standards..."

I didn't know that, and that's very cool.

Makes me think that the name SQLite is misnomer.

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

#202

Python: I really like requests, scikit-learn, the Path module from the stardard library, Keras, Django. C: Redis, SQLite, LUA. Java: Joda Time, Guava

+1 for requests, I forgot about that one but it's quite good.

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

#203

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?

JVM and Python use timsort, which is O(N) on mostly sorted data of all kinds.

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

#204
post #196

Granted 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.

g?

The global request object if I recall properly.

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

#206
post #10

OpenBSD 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/

There's a lot to admire in OpenBSD but sometimes the peripheral tools they deliver don't work well. The example I know best is OpenNTPD (last link in your comment). It has a bunch of problems, including relatively poor clock discipline compared to other NTP implementations. And it doesn't even try to handle leap seconds. That causes problems on the machine itself which may or may not matter to you, but it's catastrop…

This is seriously bad, but I do get why they thought OpenNTPd was necessary (bad/perfectible code in the other implementations).

Maybe I'll check that at home (where I replaced FreeBSD's ntpd with OpenNTPd).

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

#208
linux kernel, purely the reasoning being that it’s probably one of the most used pieces of software out there, along those lines, probably the kernel libraries and user libraries like libstdc that are a part of it. i dont know how the linux kernel is tested, but i know that production testing of the kernel on different platforms, at large scale is probably the most used open source in the market.

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

#209
Sequel, a database ORM for Ruby: https://github.com/jeremyevans/sequel

The quality of the code is amazing, it's simple to use and even simpler to look through the docs to reason about.

I also want to praise the author of the library (Jeremy Evans), his support through the IRC is second to none, you can talk directly with him pretty much on a daily basis.

And even after 8+ years, the project is still constantly being updated (last commit 4 days ago). I haven't seen too many project of this calibre especially when it is ran mostly by a single person.

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

#210
post #175

Earlier quoted context omitted.

I was pretty certain most libraries shuffle then quicksort. No need for documentation. Does go not do this?

Ever heard of Timsort?

People were still finding bugs in common implementations of timsort as of 3 years ago. It's not unreasonable to stick with a somewhat more conservative choice for a core library function until there's more reason to have confidence in the implementations of timsort.
Post reply on HN