This question already has an answer here:
Lately i have seen many answers to "trivial" questions being just a block of code, which is, I must admit, most of the times very self-explanatory and obvious, but only to people with a bit more knowledge than the newly created 10 rep whatever-beginner.
please compare revision one and revision two. it is not much of a problem to write three lines of explanation, instead of providing a solution, and having OP return for a simple variation of the problem.
Thus I would like to discuss the introduction of a feature:
Dialog-Box with "please consider adding further explanation to you answer", when a submitted answer consists only of a code-block