I believe that the most effective way to learn is to see the results of other people's work. so also when learning to write code and become a programmer, by looking at other people's source code, by yourself we will be able to see the algorithm used.
Indirectly we will learn how someone writes code and how someone resolves a problem. Impressive hunt.