👩💻 Join our community of thousands of amazing developers!
When I write about programming, I spend a lot of time trying to come up with good examples. I haven’t seen a lot written about how to make examples, so here’s a little bit about my approach to writing examples! The basic idea here is to start with real code that you wrote and then remove irrelevant details to make it into a self-contained example instead of coming up with examples out of thin air. I’ll talk about two kinds of examples: realistic examples and suprising examples. good examples are...