Skip to main content
edited tags
Link
gnat
  • 6.2k
  • 10
  • 109
  • 177
added 303 characters in body
Source Link
Aran-Fey
  • 42.9k
  • 1
  • 20
  • 19

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17(!) linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Please keep in mind that this is just an example. Quite a few people have suggested to leave a link to the documentation in the comments; that is an option if the question is as trivial as this, but there are also more complicated questions than this that also suffer from a lack of good canonicals.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17(!) linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17(!) linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Please keep in mind that this is just an example. Quite a few people have suggested to leave a link to the documentation in the comments; that is an option if the question is as trivial as this, but there are also more complicated questions than this that also suffer from a lack of good canonicals.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

added 218 characters in body
Source Link
Aran-Fey
  • 42.9k
  • 1
  • 20
  • 19

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17(!) linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17 linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, and sometimes because the question doesn't look bad at first glance.) Some of these questions are merely slightly worse than they could be, while others are actually horrible or even straight up incorrect.

Let's look at an example. (A python example, because that's my most-used language.)

  • The question: How do I replace every x character in a string with an y?

    Obviously, this is a trivial question. I'm looking for an answer along the lines of input_string.replace('x', 'y').

    Among the top google results are these candidates:

    1. This one is performing the substitution on a list of strings, so all the answers focus more on explaining list comprehensions or the map function than on the replace method.
    2. This one contains way too much fluff (reading a csv file) and the OP was actually already aware of the replace function; they just forgot to assign its output back to the variable. It's basically a typo.
    3. This one is unclear (the OP is trying to replace only those x characters that appear at certain indices, but that's not obvious at a glance) - and the accepted answer doesn't even answer that question! Most of the 17(!) linked questions are incorrectly marked as duplicates of this unclear mess!

    And that's it. There aren't really any other alternatives. From the first google results, this one is about migrating from python 2 to python 3, this one is asking how to do multiple substitutions, and this one is asking how to replace a single character at a certain index. There isn't a single good duplicate for a trivial string substitution question!

I'm not sure what to do in this situation.

  • Should I post a self-answered Q&A about this trivial topic? It would probably be downvoted and closed as a duplicate.
  • Should I wait for someone else to ask this question and then post an answer there? If so, how would I prevent other members of the community from closing the question as a duplicate?
  • Should I edit one of the existing questions into shape? I could remove some unnecessary code from this question, but I'd also have to edit the 3 answers to match and there's no way to know if all 4 users (the asker and the 3 answerers) would accept that.
  • Should I try to salvage (i.e. edit and reopen) one of the questions that were marked as duplicates of one of these? I had a short look around and it seems to be fairly difficult to find a decent question among them. I would also have to edit the existing answers to match the edited question, so this is probably more trouble than it's worth.

Bonus question: What can I do to make people stop using an unclear/misleading question like this as a duplicate target?

added 218 characters in body
Source Link
Aran-Fey
  • 42.9k
  • 1
  • 20
  • 19
Loading
Source Link
Aran-Fey
  • 42.9k
  • 1
  • 20
  • 19
Loading