2021-07-19 writing-great-examples + https://htmx.discourse.group/

Write good examples by starting with real code

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.

https://htmx.discourse.group/

https://swizec.com/blog/what-i-learned-from-software-engineering-at-google/