Earlier quoted context omitted.
I think everything from Hashicorp is absolutely top-notch, working on their stuff taught me to be a much better Ruby and Go programmer.
I'm honestly surprised to see Hashicorp mentioned here, not because I've read their code, but because I had so many hours of tear-my-hair-out misery using their products. I found them so under-tested and buggy that finally I just gave up. They're now blacklisted in my mind -- I'll never use one of their products again. I guess the lesson here is that good code doesn't always have a strong relationship to a usable or…
Ask HN: What are the “best” codebases that you've encountered?
261–270 of 278 posts
Re: Ask HN: What are the “best” codebases that you've encountered?
#262Earlier quoted context omitted.
I'm honestly surprised to see Hashicorp mentioned here, not because I've read their code, but because I had so many hours of tear-my-hair-out misery using their products. I found them so under-tested and buggy that finally I just gave up. They're now blacklisted in my mind -- I'll never use one of their products again. I guess the lesson here is that good code doesn't always have a strong relationship to a usable or…
I think you should reconsider, I use their products daily (terraform) and have absolutely no issues?
Re: Ask HN: What are the “best” codebases that you've encountered?
#263Perhaps 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…
Just to drive the point home, I was developing in Python and with no knowledge of Ruby, I was able to go through code using just github and I got what I wanted every single time.
Re: Ask HN: What are the “best” codebases that you've encountered?
#264Earlier quoted context omitted.
libavformat is rather difficult to use and difficult to fix bugs in - you'll never find the bugs. Some examples? encoding never worked as well, which is why nobody uses ffmpeg2/4/etc and x264 is a separate project. Most users use x264 _via_ ffmpeg since they may need to filter the video and/or filter/process/mux audio and other streams.
> Some examples? Just try copying video between different containers (mkv, ts, avi for one) without reencoding. > Most users use x264 _via_ ffmpeg since they may need to filter the video and/or filter/process/mux audio and other streams. They don't have to do that; you can handle each track separately and mux them back afterward. I'm talking about ffmpeg's builtin MPEG2/4/MP3 encoders, which nobody used when they wer…
I do, all the time. AVI is an old container and it has issues with B-frames and also VFR but those are container limitations, not a libavformat issue. All transmuxing between common modern containers with present-day common codecs work fine. There are always edge cases, but that's what they are, edge cases.
you can handle each track separately and mux them back afterward.
Why do that? What's the benefit?
I'm talking about ffmpeg's builtin MPEG2/4/MP3 encoders
You seem to be talking about the state more than a decade back. How's that relevant to 2019? BTW, there is no native MP3 encoder.
Re: Ask HN: What are the “best” codebases that you've encountered?
#265For a C codebase, Postgres[1] wins for me hands down. It's clean and suuuuuuper well commente, such that with a little context you can dive into something very complex and still get a feel for what is going on. [1]: https://github.com/postgres/postgres
A special mingw tool to create importlibs is/was broken on 64bit. I think it was called dlltool. Normally you'll just need to add a flag to the linker to create that.
So no, postgresql not.
Re: Ask HN: What are the “best” codebases that you've encountered?
#266Earlier quoted context omitted.
Unity sucks but as a hobbyist game developer it is a godsend. The only other way I can support all the platforms I want to (Android, web, PC) is through Web APIs directly, and nobody likes more Electron.
SDL be like "am I a joke to you?"
Re: Ask HN: What are the “best” codebases that you've encountered?
#267Earlier quoted context omitted.
I don't have a problem with that code. It is idiomatic C code, like *p++ or flag &= ~mask. ++i is a bit less common than i++ but nothing unusual. The lack of of error checking is more concerning though. It can be justified though, and it brings me to the next point. The comment is the worst part. It is useless, it literally repeats the most obvious part of the code. A good comment would be something like "there is no…
> The lack of of error checking is more concerning though. It can be justified though... How so, in this case? It could lead to undefined behavior. > The comment is the worst part. Useless comments may be irritating, but, as a bad practice, they are not comparable to skipping checks for possible errors and creating the possibility for undefined behavior.
Useless comments are bad in part because they are sometimes not updated as the code changes, and no code analyzer will catch that. There is a reason some people say that comments are lies.
Most common example of what I've seen:
// set foo to x
foo = x;
// set foo to x
bar = x;Re: Ask HN: What are the “best” codebases that you've encountered?
#268Earlier quoted context omitted.
Have you by any chance also used their Vault[0]? I'm looking at solutions for secrets management and theirs is mentioned often. [0] https://www.vaultproject.io/
I haven't and am not sure whom the target audience is exactly. Azure and AWS have secrets management, and most stacks have some open-source way to do it if you're the roll-your-own-server type.
But to me it looks like that the target audience is anyone operating a Kubernetes cluster as it seems to be the most mature option for managing secrets that is also well integrated into Kubernetes. And their open source version already provides quite a few features.
At least that's the vibe I got from reading various comparisons and blog posts about secrets management.
Re: Ask HN: What are the “best” codebases that you've encountered?
#269Earlier quoted context omitted.
I'm not fully on board with all of Roberts views but this point about a framework for frameworks sake is one I agree with. https://youtu.be/o_TH-Y78tt4 starting at around 10:30 he gets into what I was getting at. > Whereas I'd say Laravel and it's ecosystem are far more productive and time saving than simply using just PHP. I'm not arguing a time thing. I'm arguing that a framework that forces its architecture onto y…
> Laravels architecture works for one thing: web sites. From the github repo: “Laravel is a web application framework with expressive, elegant syntax”
Re: Ask HN: What are the “best” codebases that you've encountered?
#270Earlier quoted context omitted.
> Laravels architecture works for one thing: web sites. From the github repo: “Laravel is a web application framework with expressive, elegant syntax”
Web applications are not websites.
> Laravels architecture works for one thing: web sites. And for that, you're better off using WordPress.
> Laravel is better than older frameworks, like say, code igniter but it still fights you every step of the way if you want to step outside the box.
Can you provide actual examples of where it "fights you every step of the way"?
> Web applications are not websites.
So can I infer that a building a web application with Laravel would be stepping "outside the box"?
If so, could you please give examples of how building a web application with Laravel "fights you every step of the way"?