Questions tagged [minimal-reproducible-example]
Minimal, Reproducible Example (formerly Minimal, Complete, and Verifiable Example, or MCVE) is the coding example standard the community expects to be able to produce an answerable question. Use for questions about what does and does not meet this standard.
41
questions
271
votes
10
answers
7k
views
MCVExit redux: I don't need a milkshake to know when I've missed the mark
A week ago, I had an idea: change a URL with thousands of outstanding uses and try to replace an awkward initialism with... Another awkward made-up word.
...Ok, that was... not a great idea. ...
-332
votes
20
answers
8k
views
Min-Reprex: a less awkward name for MCVE
Update: ok, ok, this was a wee bit premature - here's the follow-up proposal:
MCVExit redux: I don't need a milkshake to know when I've missed the mark
Five years ago, we set out to write up ...
42
votes
4
answers
803
views
Could we add a tag-specific MRE page?
Update
Based on all the comments and on Shepmaster's answer, I think perhaps it would be better to have an MRE Guideline page (that might include templates) instead of a MRE template page for each tag....
22
votes
2
answers
528
views
Help center: search for 'mcve' does not return the mcve help page
Phase one: I was misspelling the term as 'MVCE' instead of 'MCVE'. It's part of the story; take a chair and listen.
Something I noticed that struck me as wrong and certainly not cute: I needed the ...
245
votes
2
answers
41k
views
Why should I provide a Minimal Reproducible Example for a very simple SQL query?
I've asked a question about a simple SQL query, and now some users are telling me that I need to include a Minimal, Reproducible Example (MRE/MCVE).
Obviously I've read the help pages, but my question ...
93
votes
1
answer
1k
views
What should a 'minimal, reproducible example' include for problems with automating web browsers using Selenium?
I've been cruising the C# selenium questions for quite some time now. I frequently find myself down-voting these questions and voting to close them as needing details or clarity, or needing debugging ...
64
votes
2
answers
10k
views
What does MCVE mean?
I did a search for related questions and found this question.
However that's not the same thing and doesn't answer what MCVE actually stands for.
What does it mean in the context of these questions?
...
50
votes
10
answers
1k
views
Should an MCVE include boilerplate that's not required just because people incorrectly think it is?
A question came up in which the asker demonstrated cross-browser rendering differences between two complete HTML documents, one with a DOCTYPE:
<!DOCTYPE html>
<img style="width: 100%; ...
10
votes
1
answer
234
views
What is the best way to flag questions that do not provide an MCVE (when they should)?
I've seen a lot of "how to flag / handle" questions on the meta (like this one), but none directly asking or answering what I want to know.
Many questions follow the structures:
I have X, ...
24
votes
3
answers
583
views
Where should "How to create a good reproducible example in ...?" questions reside?
A year or so ago, I contributed to the Stack Overflow documentation pages of shiny, where there was a good example on how to create a good shiny Minimal, Complete and Verifiable Example (MCVE). I used ...
87
votes
0
answers
633
views
"[mcve]" should magic-link to "Minimal, Complete, and Verifiable example" help page [duplicate]
Good quality code examples are the bedrock of Stack Overflow and I'd like to make linking to the Minimal, Complete, and Verifiable example help page even easier.
Please can we add a magic link so ...
28
votes
2
answers
1k
views
Should code from pastebin be edited into a question? [duplicate]
Sometimes when I review edits in the Suggested Edits queue, code or text from a linked pastebin is edited into the question. Is this encouraged? Should this be approved?
66
votes
2
answers
4k
views
Why should I post complete errors? Why isn't the message itself enough?
I have a shell script that fails saying there's no such file or directory.
This error message seems clear to me, but when I post about it, I'm being asked to include the full and complete error ...
76
votes
4
answers
1k
views
How to create a Minimal, Complete, and Verifiable example for C# UI related questions?
I understand that it is necessary to create a Minimal, Complete, and Verifiable example when posting questions to StackOverflow.
However, when dealing with UI related questions such as WinForms in ...
13
votes
2
answers
692
views
Improve the MCVE description: say a MCVE should "do exactly one thing"
Problem: Many users post code for a MCVE that does too much.
Let's say, for example, a program reads from a file, replaces some characters with other characters, replaces some other characters, ...
-8
votes
2
answers
1k
views
Is the MCVE help page actually being linked to in a useful way?
Recently when posting questions of my own, or viewing others' questions, I see that the comments are all "Improve your question by posting a Minimal, Complete, and Verifiable example." or "That's ...
35
votes
3
answers
1k
views
Can we introduce the concept of a MCVE to people before they even have a question?
The concept of a minimal, complete, and verifiable example is actually pretty tricky. It's entirely learnable, and most experienced Stack Overflow users have probably internalized it, but it's still ...
19
votes
6
answers
447
views
Should we close-vote questions that we cannot reproduce on our machines?
This is about the V in MCVE.
Premise
You see a standard question for debugging support. Done right and by the book, it has a problem statement, sample input, expected output, actual output and a ...
15
votes
2
answers
722
views
"Burninate" footnote in MCVE page
Visiting the How to create a Minimal, Complete, and Verifiable example page, I found there is a tiny footnote that is almost impossible to read (or maybe my eyesight is failing me):
Quote for ...
2
votes
2
answers
86
views
Questions about localizing a problem
I see these quite regularly. An OP provides all the means to reproduce the issue, shows the actual result etc. The problem is, the question is actually a request to localize the issue for them.
A ...
-6
votes
2
answers
1k
views
True meaning of MCVE
In reference to this question and this meta post. In said question, I initially posted this code:
if (condition1) {
do_something();
return;
}
if (condition2) {
if (do_stuff())
...
91
votes
1
answer
4k
views
Why is MCVE so utterly beautiful? If yes, can we put it more places, or make it more bright and garish and attention seeky?
I recently came across a comment including:
How to create a Minimal, Complete, and Verifiable example
And I realised I have never come across it before, which seems odd given the amount of time I've ...
77
votes
4
answers
5k
views
If this is not minimal, what's minimal?
It took me a lot of effort and energy to break down a multi threaded TLS application into a single threaded minimal application.
I made sure that any one can build and run my minimal example without ...
75
votes
0
answers
350
views
Add fragment identifiers to MCVE page sections for easy linking
Sometimes, when I link to the MCVE page, I want to highlight one specific aspect using a fragment identifier. For instance, a question be minimal and complete, but not verifiable. It would be nice to ...
34
votes
6
answers
810
views
Answering questions using own MCVE
I often come across questions where the user has not provided a Minimal,
Complete, and Verifiable example. Even after I comment that they should
read the relevant section on the Help Center and edit ...
-7
votes
2
answers
254
views
Should a HOWTO question about launching C++ threads be closed for lacking an MCVE?
I stumbled over this question and asked that an MCVE be provided. The asker replied to my comment suggesting that such a thing was unnecessary in the context of his question.
I'm pretty sure that my ...
136
votes
2
answers
775
views
Trigger MCVE error on paste.ofcode.org
There are 263 posts containing paste.ofcode.org, some of which are questions not providing any MCVE.
The site itself states “Your code is always private, and always expires in one week.”. Thus, most ...
26
votes
0
answers
354
views
Closing as lacking debugging details gives an unhelpful message to the poster [duplicate]
I just noticed that if a question is closed as lacking debugging details/minimum verifiable example, then the poster just get this unhelpful message in their face:
Closed. This question needs ...
16
votes
4
answers
365
views
Mention online compilers on the Minimal, Reproducible Example page?
(Note: This is mainly motivated by what I observe in the C++ tag - other tags may have different experiences - please share!)
Many times a day we link people to the Minimal, Reproducible Example site....
86
votes
2
answers
877
views
Should the MCVE page advise against pictures of text? [duplicate]
I tend to see a lot of questions like this one where askers post or link to pictures of text rather than providing directly usable test data. This is lazy and creates tedious extra work for anyone ...
44
votes
1
answer
423
views
Typo on the MCVE page
Just a small thing, but there is inconsistency in the dash width on the MCVE page:
For those who can't see the minuscule difference (it's the hyphen after "Verifiable").
Who can fix this, and ...
36
votes
1
answer
980
views
If your MCVE is still somewhat large, is it OK to post a link to github? [duplicate]
I was recently having a problem with an asynchronous server written in C++. I extracted the relevant code from my project, stripped it down to what I believed was a minimal, complete, verifiable ...
23
votes
0
answers
409
views
Change "mwe" explanation from "minimal workable example" to "minimal working example"?
I was reading the Minimal Reproducible Example page and I noticed that for some reason the mwe acronym is spelled out as "minimal workable example".
However, I believe that "minimal working example" ...
17
votes
2
answers
773
views
Questions about GPL’d code
It is not legal to take GPL code and re-license it under CC-BY-SA, and fair-use is settled on a case-by-case basis in the US and may change from country to country. That means that it is not known to ...
15
votes
2
answers
203
views
Need an MCVE be production-quality?
Based on my interpretation of https://stackoverflow.com/help/mcve, example code should be short, only containing enough to clearly and accurately reproduce the problem at hand.
I recently posted Why ...
9
votes
0
answers
109
views
Warn users when using the Tables feature in question formatting tool
Lately I observe that more and more new users use the Tables feature in the question formatting tool. Ref.: 1, 2, 3, 4.
Has it been specifically suggested anywhere recently? May be a coincidental ...
8
votes
0
answers
234
views
Did MCVE change to MRE and why? [duplicate]
So I could have sworn that the "Minimum Complete and Verifiable example" page existed and now when I search for it I find the "Minimal, Reproducible Example".
Did this get changed at some point to ...
6
votes
2
answers
224
views
How to create a Minimal, Complete and Verifiable example for Firefox WebExtensions-API related questions?
The WebExtension-API for Firefox is quite complex. It is not easy to create a MWE for it.
Do you know a way how to create a Minimal, Complete and Verifiable example for Firefox WebExtensions-API ...
3
votes
1
answer
567
views
External link for code vs. posting code as an answer
In this question I posted only the code relevant to the purpose of the question, leaving an MCVE in an external link. Then after a few comments a solution for my question came up from the users, and ...
1
vote
1
answer
3k
views
How do I create a minimal complete verifiable example?
I asked a question, and it was closed with the following reason.
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and ...
-18
votes
2
answers
340
views
Is providing an MCE in an answer now considered bad practice?
I recently provided an answer to this this Why does this if-statement combining assignment and an equality check return true? which contains a (very small) compilable program. From the comments and ...