Perhaps I'm jaded, but I notice that all the examples given here are developer tools or otherwise things with well scoped functional inputs and outputs (e.g. ffmpeg). Anyone have an example of a consumer application that has a good codebase? Chromium, GitLab, OpenOffice, etc? I feel like such applications inherently have more spaghetti because the human problems they're aiming to solve are less concretly scoped. Even…
Ask HN: What are the “best” codebases that you've encountered?
141–150 of 278 posts
Re: Ask HN: What are the “best” codebases that you've encountered?
#142The compiler for the B language, by Arthur Withney http://kparc.com/b/
Re: Ask HN: What are the “best” codebases that you've encountered?
#143Earlier quoted context omitted.
I completely agree. I've gotten to work with both of these at my summer job and it's been an absolute pleasure.
You've gotten to work with both NetBSD and Doom in one summer job? Now I'm really curious what you've been doing. I think I may want that too.
1) Port NetBSD to it
2) Port Doom to it
Re: Ask HN: What are the “best” codebases that you've encountered?
#144Earlier quoted context omitted.
Note: this assumes you speak Rust...
Don't all the comments assume you speak the language the codebase is written in? I mean I can't tell if a given PHP/C/Perl/other language I don't know well codebase is good or not. I guess there could be people that can somehow do that...
Re: Ask HN: What are the “best” codebases that you've encountered?
#145Re: Ask HN: What are the “best” codebases that you've encountered?
#146Earlier quoted context omitted.
> Every line is documented C Every line? Oh dear [1]: /* Set verbose flag */ verbose++; ... /* Set advanced flag */ advanced = 1; ... /* Set expansion level */ expansion = atoi(argv[++i]); ... /* Initialize game */ init_game(&my_game); I assume the verbose flag is incremented because there's multiple levels of verbosity, whereas the advanced flag is a boolean, and i is incremented because expansion is not a command l…
Yikes, I've gotta agree: /* Exit */ exit(1); Well, yes, I see that. It might have been helpful to extend that to "Exit with an error status", perhaps, but as-is it tells you literally nothing that the code doesn't.
Re: Ask HN: What are the “best” codebases that you've encountered?
#147Django! And django rest framework. To me, both codebases are so readable and so well put together that even if their documentation was bad (which it isn't), you could fully grasp their APIs and how to use their libraries by just reading through some of the code.
Re: Ask HN: What are the “best” codebases that you've encountered?
#148Perhaps I'm jaded, but I notice that all the examples given here are developer tools or otherwise things with well scoped functional inputs and outputs (e.g. ffmpeg). Anyone have an example of a consumer application that has a good codebase? Chromium, GitLab, OpenOffice, etc? I feel like such applications inherently have more spaghetti because the human problems they're aiming to solve are less concretly scoped. Even…
Re: Ask HN: What are the “best” codebases that you've encountered?
#149Perhaps I'm jaded, but I notice that all the examples given here are developer tools or otherwise things with well scoped functional inputs and outputs (e.g. ffmpeg). Anyone have an example of a consumer application that has a good codebase? Chromium, GitLab, OpenOffice, etc? I feel like such applications inherently have more spaghetti because the human problems they're aiming to solve are less concretly scoped. Even…
NetHack's source code is absolutely beautiful. It's probably the most well-kept, well-designed, well-structured and well-implemented K&R C program in history. Although they are switching to ANSI syntax soon. It's even more amazing because NetHack is (1) a video game, where generally speaking code quality is sacrificed for efficiency, and (2) it has been developed by a constantly changing team of volunteers over the c…
Re: Ask HN: What are the “best” codebases that you've encountered?
#150https://github.com/tornadoweb/tornado/blob/master/tornado/io...