News for hackers. Stuff that matters.

Ask HN: What are prime examples of quality code in open-source projects?

I read something recently on HN recommending that reading code is one of the most effective ways of improving your programming skills.

In light of that (and with a new year's resolution in mind), which are the open-source projects or libraries that you consider to be at the pinnacle of coding style for the particular language that they're written in?

( 2 comments | 4 points | on HN )
Re:Ask HN: What are prime examples of quality code in open-s... by duykhoa12t on Sunday December 25, 2016 @12:22AM (#13253078)
Checkout Rack (https://github.com/rack/rack) and Hanami (https://github.com/hanami/hanami).

I myself learn a lot from these projects. The code is clean, with good tests and documents.

Re:Ask HN: What are prime examples of quality code in open-s... by Ecco on Friday December 23, 2016 @05:06PM (#13247461)
I think SQLite deserves to be looked at. Not so much for its coding style as for the sheer amount of tests in the code base. It has nearly 800 times more tests than code. Yes, 800, that's not a typo.

https://www.sqlite.org/testing.html