Skip to main content
5 of 6
added 301 characters in body
Bernhard Barker
  • 55.5k
  • 6
  • 91
  • 135

I want to make sure 'duplicate due to insufficient searching' will NEVER happen again.

You can't avoid this entirely. Your goal should just be to reduce how often it happens, and try to understand how someone might've found the original for every duplicate closure of your own questions and questions of others.

Duplicates are also not always a bad thing. Sometimes posts are just really hard to find and having another post with a different phrasing pointing to it could help others find it.

I am not a native in English, which is why I am struggling in finding information in English in the first place.

English-speaking ability is important, but searching is also a skill in and of itself that improves as you do more searching.

How, exactly, do I 'rephrase' a question to get better search results?

You could try rephrasing your question by putting it into a different grammatical tense or using a synonym or something, but it's often going to be more helpful to come up with searches that approach the problem from different angles or more or less broadly.

These could all be different ways to search for the same problem:

Why does {string format function F} return {value R} when given {input I} in Python?
Why does {similar format function F2 that's more commonly used} return {value R} when given {input I} in Python?
Why is {input I} formatted as {value R} in Python?
Why does string formatting return {value R} for {input I} in Python?

Here are a few more you could try, but I would expect such rephrasings to be less likely to give you the answer than the above:

Why does {function F} return {value R} in Python?
Why is {function F} returning {value R} in Python?
When would {function F} return {value R} in Python?
Why doesn't {function F} work when I pass it {input I} in Python?
Why doesn't {function F} work when given {input I} in Python?

How do I find documentation?

You typically don't find documentation by rephrasing your question.

You find documentation by specifically searching for it.

Often you can type just the name of a function or class (plus the language or API and "docs" or "api") into Google and one of the top links will be the official documentation (or the documentation used by most people, which may not be the official documentation).

If you know what the official documentation is called or its URL, you could add that to your search as well (possibly with site:...) if you can't find it another way.

How should I present my research effort in a question?

The goal of presenting research effort should primarily be to help others understand and answer the question.

First and foremost, you should try to address anything people are likely to point you towards (such as documentation or highly related posts) and explain why those don't answer your question. This could be 0 links or 5 links; there isn't a clear rule here, because it depends on what you actually found.

If you just have a list of links (and explanations) somewhere in your question, you probably shouldn't have more than say 3 links there. Although it's usually better to try to integrate the links into your post so it flows naturally. In that case there isn't really a clear upper limit on number of links (although 3 is probably still a good rule of thumb and you should question whether all links are important if you find yourself adding more).

Failing that, you could also just say you couldn't find anything too closely related and the closest you found was X, Y and Z.

Although providing links is only really necessary when the links actually add some important context to the question. I wouldn't add links just for the sake of adding links.

"Research effort" also includes debugging, constructing a minimal example, digging a bit deeper (by say trying some different inputs) to really get to the heart of the issue and taking the time to write a good, clear and concise question that's specific enough to be easily answerable, but that's also written in a way that would help others who have the same problem.

What format should the question be in?

The background-problem-research-miscellaneous information-question format used in this question is okay.

I'm not personally such a big fan of adding headings as a rule to all questions, as this makes it easier to add a lot of optional information that isn't actually necessary to answer the question and it would be better if that information were just removed altogether. It also means you might put less effort into structuring your question in a way that's easy to read from top to bottom.

Good questions are often short (while providing all necessary context) and well-structured to a point where headings isn't necessary at all and adding them might even make the question worse.

Things like "Example", "Input", "Output" or "Code" (if the code block isn't enough already) might make for useful headings though. It could be helpful to provide a clear separator between the more sentence-focused part of the question and some raw data (and obviously to tell people what the data actually is).

This is far from a rule though and may be a bit more subjective. I would judge it on a case-by-case basis. I'd suggest looking at other questions, seeing what other people do (and how they edit your question) and seeing what you find particularly easy to read to guide you in formatting your questions.

Is there a list of question-writing errors others have made? How could I avoid the same mistakes?

There are probably way too many different types of mistakes you can make in writing a question to list here.

Read through the Help Center, check the Meta tag and pay attention to the comments, votes, closure and edits on your question and other questions. If a question is received poorly or received well, try to understand why and learn from that.

It would also help to engage with the Meta community and read lots of other random Meta posts, although that's probably less important.

Making some mistakes is okay. The more important parts are doing sufficient research, into the question you have, into the broader topic it's about and into SO and how to ask questions and what's appropriate here, before asking a question and not making the same mistakes multiple times.

Am I losing much on searching on {insert search engine} instead of Google?

You're almost certainly at least making it a bit harder to find what you're looking for.

I would expect most of the major search engines to at least do a moderately okay job of returning relevant results, but you could always try Google if the others aren't giving you the results you're looking for.

Bernhard Barker
  • 55.5k
  • 6
  • 91
  • 135