Learn by reading code: Python standard library design decisions explained
> "There are so many projects on GitHub – pick one you like and see how they did it." But most successful projects are quite large; where do you start from?<p>I'm working on a slightly similar project motivated by this problem: how do you learn from established open-source projects - most interesting ones are too big, too complex, to hard to get started with.<p>So I'm compiling a collection of interesting code examples from open-source projects and explaining/annotating them. I'm trying to pick examples that are:<p>- Taken from popular, established open-source projects.<p>- Somewhat self-contained. They can be understood with little knowledge of the surrounding context.<p>- Small-ish. The can be understood in one sitting.<p>- Non-trivial.<p>- Instructive. They solve somewhat general problems, similar to what some other coders on some other projects could be facing.<p>- Good code, at least in my opinion.<p>I'm planning to share it in a few weeks.