The Art of the Minimal Reproducible Example #3361
TomJGooding
started this conversation in
General
Replies: 1 comment
-
Thanks Tom, a well-crafted writeup of the importance of MREs. Deserves a pin to the top of discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently discovered that Textualize founder @willmcgugan also started label.dev, which includes an article about The Art of the Minimal Reproducible Example which I thought worth sharing here.
When asking for help with a problem, you can greatly improve the chances of getting a quick answer by including a minimal reproducible example (MRE): a short piece of code that can reproduce the issue. It should be complete and self-contained, so anyone can just copy, paste and run the code.
The article also links to Craft Minimal Bug Reports, which has more detailed advice on creating a MRE. Some highlights:
Reducing your code to a MRE will take some time and effort. but it "is good practice for solving bugs in general".
Not every single problem needs a MRE and sometimes it just might not be possible. But if you do make the effort, an example will make people much more likely to help!
Beta Was this translation helpful? Give feedback.
All reactions