Matsumoto Yukihiro (Matz) is the author of the programming language Ruby. He says about how he read the source codes:

  • Do not try to read the whole codes.
    • There is no “story” in the source code, so you do not need to read through it all. It is enough if you pinch interesting fragments and learn the wisdom of the predecessors.
  • Read with purpose.

In other words, you should better to have a particular purpose, and cherry-pick interesting fragments from the codes.

I introduced the three ideas of lazy evaluation study method, YAGNI principle and Matz’s code reading method. You may find common patterns among the three ideas.

en.icon --- This page is auto-translated from [/nishio/(1.3.1.3) How Matz read source codes](https://scrapbox.io/nishio/(1.3.1.3) How Matz read source codes) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at [@nishio_en](https://twitter.com/nishio_en). I'm very happy to spread my thought to non-Japanese readers.