Live data from Hacker News

Ask HN: What's the best source code you've read?

news.ycombinator.com

41–50 of 271 posts

Re: Ask HN: What's the best source code you've read?

#42
post #9

One of the most surprisingly clear code bases is LLVM. It’s an old complex beast, yet it’s organized beautifully. I mean, it has a lot of essential complexity but little accidental complexity. That’s usually what I strive for when coding. Complexity is sometimes unavoidable, that’s fine, that’s why it’s essential. However, avoidable complexity should be… well… avoided.

No post body was provided.

Re: Ask HN: What's the best source code you've read?

#43
The {BSD/OS, Free and Net}BSD sources in the mid-90s, coming from Linux and a source license for a commercial unix, both of which were mostly undocumented and didn't have any version control. The commercial unix was really grody, with lots of copy/paste of the same function with different bugs each time, and comments with bug numbers that meant nothing to us and didn't explain a thing.

The BSD sources were sanely laid out, documented and had a beautiful coding style that made the code easy to read. Free- and NetBSD even had version control.

Re: Ask HN: What's the best source code you've read?

#44

It’s not the best, far from it, but it was fascinating to me so I will share. I used to work for a large newspaper. Engineering wasn’t the focus of the business, it was only a means to an end, it was just something they needed to have a competitive website. As a result, the churn rate was very high. But more interesting there was also a very high return rate. Engineers would come and go and return and leave again all…

The book "A Deepness in the Sky" features people living on an ship whose operating system is thousands of years old. One of the main characters is considered a software archaeologist of sorts - he's an engineer, but in a sense also a historical researcher.

I can't emphasize enough that this notion is only a side point in the story and not a main aspect of the plot, sadly, so I wouldn't go reading it in hopes of hearing more. (Although it is a great book regardless.)

I have often considered trying to write a scifi novel centered around this idea because I find it so fascinating.

Re: Ask HN: What's the best source code you've read?

#47
post #6

I don't know if it is the most elegant, or concise, or l33t, but I am in love with Polly https://github.com/App-vNext/Polly

Briefly used Polly at $OLDJOB and it has “Java” library vibes for me. Being on Node at work these days, I wish more libraries carried this quality.

Re: Ask HN: What's the best source code you've read?

#50
post #9

One of the most surprisingly clear code bases is LLVM. It’s an old complex beast, yet it’s organized beautifully. I mean, it has a lot of essential complexity but little accidental complexity. That’s usually what I strive for when coding. Complexity is sometimes unavoidable, that’s fine, that’s why it’s essential. However, avoidable complexity should be… well… avoided.

Quoted post unavailable.

Why? If you don't mind me asking.
Post reply on HN