Live data from Hacker News

Ask HN: What source code is worth studying?

news.ycombinator.com

111–120 of 176 posts

Re: Ask HN: What source code is worth studying?

#111
post #68

Earlier quoted context omitted.

In my experience, best jobs you get aren't posted — as best candidates don't send out resumes.

But we can't all be the best.

The rest of us just say that we are an 'X' programmer when applying for a job that requires the 'X' programming language, and then during the interview mention that we also know a bunch of other languages and know how to use the correct tool for a problem ;)

Re: Ask HN: What source code is worth studying?

#113

Earlier quoted context omitted.

Thanks for this list. I was mostly looking for Python, Javascript, Haskell and C#. Any help regarding that? Also, as I believe this thread will also help others, you can go ahead and post about any other code-bases for other languages.

Modules within the Python standard library are very well written. The source code also provides very good examples of decent unit tests.

I would stay the heck away from the collections and itertools modules to be honest. Raymond H. is an amazing coder, but he' s a madman.

Re: Ask HN: What source code is worth studying?

#114
post #62

I found the annotated source code of the underscore.js to be very educational: http://underscorejs.org/docs/underscore.html

Worth pointing out that the tool used to produce the annotated version is open source, and annotated by running it against its own source code: http://jashkenas.github.io/docco/

Re: Ask HN: What source code is worth studying?

#115
post #98

For PHP, I've been very impressed by Phabricator's code (and the related phutils library). It's worth looking at the git commits as well to see just how clean and structured commits can be. I'm much more impressed by it than by any PHP framework code I've read (and I've read Zend, Symfony2, li3, codeigniter as well as custom frameworks)

https://github.com/facebook/phabricator

Re: Ask HN: What source code is worth studying?

#116
post #2

C -> Varnish PHP -> Yii Ruby -> Merb Scheme -> Arc Clojure -> Core JavaScript -> Multeor Any languages in particular that you're interested in not covered above?

Thanks for this list. I was mostly looking for Python, Javascript, Haskell and C#. Any help regarding that? Also, as I believe this thread will also help others, you can go ahead and post about any other code-bases for other languages.

For Haskell, Hakyll's source is pretty well written.

Re: Ask HN: What source code is worth studying?

#120
Erlang: Riak https://github.com/basho/riak Riak is actually a layering of a few different projects including Riak KV, Yokozuna (Solr), Riak Core, etc. It was grown out of the Dynamo paper.

Haskell: Snap https://github.com/snapframework/snap Snap is another project built in layers (snap-server, io-streams, snaplets, snap-core). The 1.0 release makes some pretty massive structural changes behind the scenes changes with minimal breakage of the public api and io-streams is a very nice api to work with.

JavaScript: Underscore.js http://underscorejs.org/docs/underscore.html Underscore is a utility library that gives a nice overview of various techniques in JS, such as how to handle equality, use of apply, ternary operators, etc. Many functions have fallbacks to ECMAScript 5 native functions.

Post reply on HN