We frequently ask new contributors to improve their questions to comply with How to ask and Minimal, complete, verifiable example. Those pages provide some basic advice and show what a good question should look like.
However, many, if not most, of the new contributors coming to ask questions are absolute beginners and do not know how to gather the required information to form a good question since they have no clue about using debuggers, finding error logs, or even enabling error logging at all.
This is different in each language and cannot be advised generally, e.g. in PHP questions I often see people providing either no dump at all or, if they do, it is a print_r
not showing any relevant types. var_dump
is more verbose, however, when this is used to create reproducible examples, you would have to recode array/object structures by hand (typically entire database result tables). In my experience, many people have not heard about var_export
generating executable source.
Both help pages above are a nice summary to give a first idea of how questions should be asked. I would like to see a more language-specific automated help system when asking questions. It should recognize or just ask which coding language the question belongs to and teach the asker how to gather the needed information, i.e. error logs, dumps in a proper format, etc.
Is there already something similar I did not see, or is it planned?