Live data from Hacker News

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

news.ycombinator.com

101–110 of 294 posts

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

#101
post #98

Earlier quoted context omitted.

As far as I know, parts of the compiler are still code automatically translated from C, so this may be part of the reason.

It is not, the compiler has been pure Go since, I think, v1.4.

That doesn't invalidate the parent comment :) The code is pure Go, but parts of it originate in C by means of automatic translation during development of Go 1.4 (or whichever version it was).

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

#103
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…

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.

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

#104
post #20
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/

for sure not. OpenBSD makes no attempt to use proper performance which is critical for a kernel. there are so many naive ad-hoc data structures and algos, it's a shame to walkthrough.

How is performance related to code quality. That makes no sense. If anything, if you had to inline ASM for example, the code would suffer from readability.

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

#105
post #87

Python (official cpython)

There's a nice introductory lecture series on CPython internals on Youtube that tries to cover how the interpreter works and how the python code maps to bytecode by going trough the cpython source: https://www.youtube.com/watch?v=LhadeL7_EIU

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

#106
post #2

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

We try to keep up, but the truth is that it's a 15 years old C++ codebase implementing some weird hardware in even weirder ways. We're far from where we'd want to be code quality wise -- close to no automating testing infrastructure, code is full of module-level globals, inconsistent conventions, etc.

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

#108

There are too many in very different domains and languages. However, I opt for jQuery here. It is one of the greatest examples of how constant refactoring and thoughful usage of design pattern get you a very long way. If you are designing JavaScript libraries, pls have a look at jQuery. So many great design decisions aka great code quality.

Pushing all dom manipulation through global evals seems like the exact opposite of thoughtful design to me. I have a long list of places where I want to implement strict CSPs, but can’t purely for minor use of jQuery.

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

#110
post #20

Earlier quoted context omitted.

for sure not. OpenBSD makes no attempt to use proper performance which is critical for a kernel. there are so many naive ad-hoc data structures and algos, it's a shame to walkthrough.

How is performance related to code quality. That makes no sense. If anything, if you had to inline ASM for example, the code would suffer from readability.

Shouldn’t good performance be one of the goals of good code?
Post reply on HN