Requests for Python https://github.com/psf/requests
Ask HN: What are the “best” codebases that you've encountered?
21–30 of 278 posts
Re: Ask HN: What are the “best” codebases that you've encountered?
#22Re: Ask HN: What are the “best” codebases that you've encountered?
#23I 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.
Re: Ask HN: What are the “best” codebases that you've encountered?
#24The 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/
Re: Ask HN: What are the “best” codebases that you've encountered?
#25Re: Ask HN: What are the “best” codebases that you've encountered?
#26Re: Ask HN: What are the “best” codebases that you've encountered?
#27Kubernetes 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
Re: Ask HN: What are the “best” codebases that you've encountered?
#28I 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?
#29Kudos also to Postgres, SQLite, Lean (theorem prover), and the containers library for Haskell.
Re: Ask HN: What are the “best” codebases that you've encountered?
#30In 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.