I am active mostly on jquery and javascript. Of late, I am seeing many users asking for a fiddle for everything like this or this
Is it good to ask for a fiddle in the comments? It's for the community to decide.
I am active mostly on jquery and javascript. Of late, I am seeing many users asking for a fiddle for everything like this or this
Is it good to ask for a fiddle in the comments? It's for the community to decide.
I often see questions that don't have enough information to diagnose the problem, and then immediately under the question there will be 2 or 3 comments asking for a "fiddle" rather than asking the OP to post the necessary code/info in the question itself.
Encouraging users to post their MCV example in the form of a fiddle and not in the question, is more than a little counter productive. If all the required info/code lives on jsFiddle the question can and should be closed.
Don't get me wrong I like jsFiddle, it's a really useful tool when it comes to isolating, debugging, and sharing code snippets, but they should be treated more like french fries. They are a great side item and they pair well with an awful lot things, but they aren't an entree and its not healthy to try to use them to replace a meal.
tl;dr
There's nothing wrong with asking for a fiddle provided that it is not a replacement for asking for the appropriate information/code to be posted in the question.
From my experience, having a fiddle that demonstrates the issue helps you get more attention and therefore get a better answer.
Without a fiddle in some cases (not all), the onus is on the people answering to either digest all of the code, looking for issues, or create their own fiddle to try to replicate the issue.
If I see that someone has gone to the effort to make a fiddle that allows me to see the issue first hand and start hacking, I feel that they have gone the extra mile to get an answer by doing the ground work required to recreate an issue, and therefore I'm more likely to answer.
In summary, I have no issues with asking for a user to create a fiddle, if it's not a simple copy and paste job for me, because if they really want help, it's the least they can do.
To me, a jsFiddle isn't required, but what it does tell me is that the problem is reproducible. It also proves that the problem has been isolated, meaning that it exists somewhere within that fiddle.
Without the fiddle, who knows, maybe the problem isn't within the posted code at all. However it shouldn't be required. The question poster is in no way obligated to put it in a fiddle, especially if they don't use it as a development tool, and the question alone should be sufficient. If the problem or code is complex, it may not be trivial to fiddle that code.
The fiddle definitely helps though. It gives a working environment for both the questioner to demonstrate the problem, and for the answerer to solve and demonstrate the solution (e.g forking the fiddle, solving and linking in the answer).
So I would say this, the lack of a fiddle doesn't demotivate me from answering, but on the other hand, the presence of it motivates me to answer even more.
Yes, this seems fine to me, but usually the problem is often that there's not enough info to answer the question, and a fiddle may not be enough. So, I tend to ask for fiddles (js, sql, whatever) like this:
Please include relevant code in your question to repro the issue, if at all possible backed by a jsfiddle.
I usually handcraft the comment to suit the question, varying a little bit. Whatever you do though, guide users to including code in the question, using fiddles only as a convenient addition.
I see where you're coming from and would tend to agree. Fiddles are very useful but they are also external links, and all code should be in the question.
What we really want is a question about JavaScript, or a question about CSS, or a question about HTML; to my mind, if your question needs to demonstrate an interaction between two or even three of those technologies at once (which is where Fiddles become required), it is too broad.
I'd like to see an end to these comments. Questions on Stack Overflow should be terse enough not to require fiddles in the first place.
That being said, half the time it seems that "please show fiddle" is a lazy, passive-aggressive substitute for everything that I just said; instead of writing that comment, simply close the question as too broad.