4 ms·
Wow, this was a great read. I wholeheartedly agree that very few people read source at a deep level, but your link explains why. We should read source code som
by dmartinez 9y ago
Wow, this was a great read. I wholeheartedly agree that very few people read source at a deep level, but your link explains why.
We should read source code sometimes (maybe) to deepen an understanding of how someone might think about the problem differently. In the link, Donald Knuth says he enjoyed the challenge of exploring a piece of software that had no documentation in order to figure it out.
In light of this, my answer to "what code should people read" is that you should read (really, decode) the source code of libraries competing to solve the same problem. This would lead to the greatest yield in terms of uncovering core shared concepts and core unique concepts.
You could compare Vue and React to understand how two different parties thought about componentizing the front-end. Or you could compare Django and Flask to see how a batteries-included MVC framework compares to a lighter alternative.