Live data from Hacker News

Programs to Read

wiki.c2.com

11–20 of 60 posts

Re: Programs to Read

#11
I went through the list and the comment about Apache Lucene really piqued my interest. I found the Lucene code in GitHub but some of the sources have more boilerplate Java comments than code! Anyways, I remembered Java Docs are often excellent so here's the Lucene Java Docs:

https://lucene.apache.org/core/7_5_0/core/index.html

From my experience, studying the API Docs for Java and using it as a guide to the code makes understanding the code much easier.

The code is here:

https://github.com/apache/lucene-solr

Re: Programs to Read

#13
Many years ago I enjoyed Code Reading[0] which is a whole book which basically just discusses snippets from open source codebases.

It might be a bit old (I honestly don't remember the specifics) but most of the code was already "mature" at the time so I think it would still be valid.

[0] https://en.wikipedia.org/wiki/Code_Reading

Re: Programs to Read

#15
I saw the Linux kernel was recommended many times here, but how many people actually read it? Where do you even start? The Linux kernel has around 60,000 files and 25 million lines of code...

I think smaller projects are better for learning purposes. If you are interested in reading some smaller projects, check out my project here https://github.com/CodeReaderMe/awesome-code-reading.

Re: Programs to Read

#16
post #5

Earlier quoted context omitted.

Seems like it hasn't been updated in a while. Each page has an "last updated" timestamp. The homepage says: "Last edit December 19, 2014". There's also a Github project but hasn't been updated in 2 years: https://github.com/WardCunningham/remodeling

Hi, for some reason you're shadowbanned? As a new account I find this really unusual. It's likely you might need to verify your email or something. I've vouched for this comment, which is why it appears. On Topic: there was a discussion a year ago about what the progress block is: https://github.com/WardCunningham/remodeling/issues/24 It seems that he's stuck with some files that are mixed-encoding and can't repair t…

Thank you very much. This is a new account, but I don't know why I'd be banned :/ And why would you be able to see it and not me? :(

On Topic again: c2.com is great, I'd love if someone would take ownership and keep maintaining it.

Re: Programs to Read

#17

I saw the Linux kernel was recommended many times here, but how many people actually read it? Where do you even start? The Linux kernel has around 60,000 files and 25 million lines of code... I think smaller projects are better for learning purposes. If you are interested in reading some smaller projects, check out my project here https://github.com/CodeReaderMe/awesome-code-reading .

Nobody ever wrote a 25MLOC program from start to finish, so I don't think it makes much sense to read it that way.

I'd read it the way it was written: from the beginning. What's Linux 0.01 look like? What's the next changeset after that release look like? What was necessary to add the driver for your favorite device? What changes were made for your particular CPU?

Programs are not static works (except maybe TeX and Metafont). They exist in the form they do in order to be amenable to changes. So look at the changes that drove it.

Re: Programs to Read

#18
post #17

I saw the Linux kernel was recommended many times here, but how many people actually read it? Where do you even start? The Linux kernel has around 60,000 files and 25 million lines of code... I think smaller projects are better for learning purposes. If you are interested in reading some smaller projects, check out my project here https://github.com/CodeReaderMe/awesome-code-reading .

Nobody ever wrote a 25MLOC program from start to finish, so I don't think it makes much sense to read it that way. I'd read it the way it was written: from the beginning. What's Linux 0.01 look like? What's the next changeset after that release look like? What was necessary to add the driver for your favorite device? What changes were made for your particular CPU? Programs are not static works (except maybe TeX and M…

[deleted]

Re: Programs to Read

#19
post #2

+ nginx

On the topic of C, I'd also strongly recommend mandoc[1]. It solves a number of hard problems (indexing and searching of man pages, rendering and parsing markup and translating said markup to HTML, PDF and tty output. The code remains fairly accessible. Definitely one of the codebases I regularly refer to for style and practices.

[1] https://mandoc.bsd.lv/cgi-bin/cvsweb/

Post reply on HN