Skip to main content
added 9 characters in body
Source Link
Chuck
  • 236.9k
  • 15
  • 5

I think there are two salient differences:

  1. dotslash's question was a bit clearer. Yours was kind of muddled with datumAnalyzers and so on and went on some tangent that I still don't understand about how it "shouldn't work unless it's nested," and then includes another code sample that does something different. These are all opportunities for readers to get lost.

I don't think it's bad that your code included the whole original invocation, because you weren't sure which part was relevant, but it does make it a little harder to pick out the relevant bits at a glance.

On the other hand, dotslash's question just includedconsisted of an introduction, a very minimal code sample, the expected result and the actual result and asked why it worked that way — a structure that is easy to follow and makes it very easy to formulate an answer to the question. If you aren't sure how to structure a question, that is a great standby: "Here's a minimal example of what I'm doing, here's what I think it will do, here's what it's actually doing. Please fill in the blank in my knowledge."

  1. dotslash's question had a less obvious answer and focused on more of a corner case (how does varfunction hoisting interact with function hoistingvariable declarations?), so more people were probably interested in the answer.

I think there are two salient differences:

  1. dotslash's question was a bit clearer. Yours was kind of muddled with datumAnalyzers and so on and went on some tangent that I still don't understand about how it "shouldn't work unless it's nested," and then includes another code sample that does something different. These are all opportunities for readers to get lost.

I don't think it's bad that your code included the whole original invocation, because you weren't sure which part was relevant, but it does make it a little harder to pick out the relevant bits at a glance.

On the other hand, dotslash's question just included an introduction, a very minimal code sample, the expected result and the actual result and asked why it worked that way — a structure that is easy to follow and makes it very easy to formulate an answer to the question. If you aren't sure how to structure a question, that is a great standby: "Here's what I'm doing, here's what I think it will do, here's what it's actually doing. Please fill in the blank in my knowledge."

  1. dotslash's question had a less obvious answer and focused on more of a corner case (how does var hoisting interact with function hoisting?), so more people were probably interested in the answer.

I think there are two salient differences:

  1. dotslash's question was a bit clearer. Yours was kind of muddled with datumAnalyzers and so on and went on some tangent that I still don't understand about how it "shouldn't work unless it's nested," and then includes another code sample that does something different. These are all opportunities for readers to get lost.

I don't think it's bad that your code included the whole original invocation, because you weren't sure which part was relevant, but it does make it a little harder to pick out the relevant bits at a glance.

On the other hand, dotslash's question consisted of an introduction, a very minimal code sample, the expected result and the actual result and asked why it worked that way — a structure that is easy to follow and makes it very easy to formulate an answer to the question. If you aren't sure how to structure a question, that is a great standby: "Here's a minimal example of what I'm doing, here's what I think it will do, here's what it's actually doing. Please fill in the blank in my knowledge."

  1. dotslash's question had a less obvious answer and focused on more of a corner case (how does function hoisting interact with variable declarations?), so more people were probably interested in the answer.
Source Link
Chuck
  • 236.9k
  • 15
  • 5

I think there are two salient differences:

  1. dotslash's question was a bit clearer. Yours was kind of muddled with datumAnalyzers and so on and went on some tangent that I still don't understand about how it "shouldn't work unless it's nested," and then includes another code sample that does something different. These are all opportunities for readers to get lost.

I don't think it's bad that your code included the whole original invocation, because you weren't sure which part was relevant, but it does make it a little harder to pick out the relevant bits at a glance.

On the other hand, dotslash's question just included an introduction, a very minimal code sample, the expected result and the actual result and asked why it worked that way — a structure that is easy to follow and makes it very easy to formulate an answer to the question. If you aren't sure how to structure a question, that is a great standby: "Here's what I'm doing, here's what I think it will do, here's what it's actually doing. Please fill in the blank in my knowledge."

  1. dotslash's question had a less obvious answer and focused on more of a corner case (how does var hoisting interact with function hoisting?), so more people were probably interested in the answer.