Always? Hell no!
There are problems where having an MCVE is all but essential to finding a solution. If you're at all familiar with the subject being asked about, you can identify these with one eye closed and the other peering through a cloudy malt beverage. If the asker forgot to include the code (or neglected to narrow it down to a specific problem area), then he has made a terrible mistake.
...Then there are problems that don't really need any code, at least not in the question, but where code can be a more effective way to communicate what's being done than prose would be. Doesn't even need to be real code - pseudocode works fine. Your example falls into this category - it didn't need code, but the code is easier to read than the prose, and together they help to clarify the problem in a way that either one alone wouldn't.
...and then there are problems that don't benefit from code at all. The asker is trying to do something specific, but has absolutely no clue how to do it - and any code he might include is just a waste of space:
How do I frob a widget?
I'm building a pugnacious flywheel grommet, and have found that I need to stabilize the system by frobnicating all incoming widgets. Using Java. I've searched the API docs but can find no indication of how this might be accomplished.
Here's my code:
public class Frobnicator
{
public Widget Frob(Widget unfrobbed)
{
// ?????
}
}
These questions are easily recognizable because the code - when included - is either entirely irrelevant to the problem, or entirely boilerplate. Sometimes both. Unlike the second class of problems, the code here actually distracts from the prose - I've seen folks answer these by filling in the blanks without bothering to read the actual problem statement, leading to much frustration on all sides. Fortunately, it's fairly easy to edit out the irrelevance, particularly if you're also providing an answer that makes it clearly unnecessary...
...But then you run into the insidious problem of folks begging for code when none is needed. I've seen folks posting comments asking for code or linking to the MCVE or WHYT articles on questions that were already answered years ago and clearly do not need or benefit from any additions - in at least one instance, I observed an asker browbeaten into copying the solution from an answer into the question, just to quiet the complaints.
That's just annoying.
We already have guidelines for when to include code listed in the How To Ask page. With that in mind, here are some corresponding guidelines for...
When to ask for code
You should politely request that an asker include code when you encounter a question that...
- ...requires code in order to reproduce the problem.
- ...would definitely benefit from code in order to better illustrate the requirements described.
- ...includes too much code to identify the specific problem (be sure to link to MCVE).
You should refrain from requesting code when encountering a question where...
- ...you haven't actually read the question.
- ...you have absolutely no idea what is being asked about.
- ...you aren't sure whether or not code would help to explain the problem.
- ...the question has already been answered and clearly does not require further code to assist in diagnosing the problem.
- ...the question does not concern an issue with code.