Live data from Hacker News

Ask HN: What are the “best” codebases that you've encountered?

news.ycombinator.com

21–30 of 278 posts

Re: Ask HN: What are the “best” codebases that you've encountered?

#23
post #20
post #4

I know it's a cliche but the sqlite code is the easiest to read C I've encountered. Followed closely by the code for Redis.

I also like the C source for Tcl/Tk which I think also follows similar engineering/style standards.

The author of Tcl/Tk wrote a fantastic book recently called "A Philosophy of Software Design" and it's brilliant, hands down my favourite programming book of the last decade.

Re: Ask HN: What are the “best” codebases that you've encountered?

#24

The Codemirror codebase [0] is simply written and richly commented, and using Codemirror itself in a project is a pleasure. Tellingly, Marijn Haverbeke, Codemirror's creator, is also the author of the excellent 'Eloquent Javascript' [1]. [0] https://github.com/codemirror/codemirror [1] http://eloquentjavascript.net/

It's unfortunate that the author doesn't appear to understand the value of a strict Content-Security-Policy.

Re: Ask HN: What are the “best” codebases that you've encountered?

#27

Kubernetes for Golang. This has been brought up as an example of fine documentation: https://github.com/kubernetes/kubernetes/blob/ec2e767e593953... Requests for Python https://github.com/psf/requests

I’m not sure I’d call Space Shuttle Style appropriate for 99% of code, but it does make it easy to read and harder to mess up down the road.

Re: Ask HN: What are the “best” codebases that you've encountered?

#28
I really liked the Go standard library (or at least from around 1.4-ish, it might have gotten more complicated now).

I liked that it was actually possible to read it and understand what was going on.

In a similar vein, P. J. Plauger's version of the The Standard C Library is nice because even if it might not be especially optimized(?), you can actually read the code and understand the concepts that the standard library is based on.

Software Tools by Kernighan and Plauger would also be great except that you have to translate from the RatFor dialect of Fortran or Pascal to use the code examples.

Even so, I used its implementation of Ed, to create a partial clone in PowerShell that let me do remote file editing on Windows via Powershell when that was the only access that was available.

So even over 4 decades and various operating systems removed, there are still concepts in there that are useful.

Jonesforth is also a great and mind blowing code base although I'm not sure where the canonical repository is currently.

Re: Ask HN: What are the “best” codebases that you've encountered?

#30
I wish there was a way to read the codebase where there is a tag that tells you what the folder does.

In github, rather than see what has changed, it would be interesting if there was a comment that told you what the folder contained.

edit: Relevant here because the best codebase for me is one where I can understand the folder structure, but that is a sort of 0th order effect that should be equalized with some tool.

Post reply on HN