Learning how to read source code has become a hobby of mine lately (and a painful one at that). In the course of my reading I have come across a number of blogs and articles on the subject which have been helpful, so I thought I'd create a gist to keep track of them and also share them easily.
How to read source code
- http://blog.ezyang.com/2012/04/use-the-source-dont-read-it/
- http://wiki.c2.com/?TipsForReadingCode
- http://www.skorks.com/2010/05/why-i-love-reading-other-peoples-code-and-you-should-too/
- https://github.com/aredridel/how-to-read-code/blob/master/how-to-read-code.md
- https://blogs.msdn.microsoft.com/csliu/2009/03/04/how-to-read-source-code/
- https://selftaughtcoders.com/how-to-quickly-and-effectively-read-other-peoples-code/
- http://www.gigamonkeys.com/code-reading/
- http://pythonpracticeprojects.com/how-to-read-source-code.html
- http://teropa.info/build-your-own-angular/
General thoughts about source code
- https://blog.codinghorror.com/learn-to-read-the-source-luke/
- https://medium.freecodecamp.org/what-i-learned-from-reading-the-redux-source-code-836793a48768
- https://jvns.ca/blog/2014/12/29/on-reading-the-source-code-not-the-docs/
- http://lifehacker.com/learn-to-code-by-breaking-someone-elses-code-1442438673
- https://www.hanselman.com/blog/GivenILikeReadingSourceCodeByTheFireWithMySmokingJacketAndBrandySnifterAListOfBooks.aspx
- https://shekhargulati.com/category/code-reading/
- https://news.ycombinator.com/item?id=7602237
- http://blog.teamtreehouse.com/3-misunderstandings-about-code-review-that-are-slowing-you-down
Debugging your app by reading source code
Tools for reading source code
- https://www.quora.com/What-is-the-best-practice-for-reading-source-code (the first answer)
- https://medium.com/@egraether/why-working-on-chrome-made-me-develop-a-tool-for-reading-source-code-7111ba21a6f0
- https://thorstenlorenz.wordpress.com/2011/06/05/reading-source-code-on-ipad-with-syntax-highlighting/
- https://j11y.io/javascript/under-jquerys-bonnet/
- http://ashkenas.com/docco/
- http://annotated-code.maryrosecook.com/ (really cool example of annotating the source code of all the web apps you've created)
Reading node.js source code
Reading jQuery source code
8Reading Ruby on Rails source code
- https://simonecarletti.com/blog/2009/09/inside-ruby-on-rails-reading-source-code/
- http://www.rubyinside.com/ruby-mri-code-walk-tour-6020.html
- https://benmccormick.org/2015/06/08/how-jquery-works-an-introduction/
- https://www.sitepoint.com/reading-ruby-professional-development/
- http://pathfindersoftware.com/2008/12/read-the-source-luke-a-readers-guide-to-the-rails-source/
Reading Wordpress source code
Reading Chrome extensions source code
Reading Android source code
Reading Slack source code
Reading Go source code
Verbal explanations of source code
Reading the Loopback framework source code