Related to Is asking for solutions to a problem that has more than one possible solution too broad for SO? and Please stop having opinions about things, but meant as a more general question.
I think that sometimes people are too eager to close based on "weasel words". Yes, there is this hate for Gimme teh codez-questions, which is justified: a question whose title and body combined contain no more than, for example, "How to write a calculator in Go" or "I want to expose my database over a REST API, discuss", is not specific enough to answer with a couple of paragraphs and does not have one or a handful of definitive answers, and should therefore be closed until the asker adds some constraints.
However, usually [citation needed], questions merely containing such language aren't actually that broad - the OP just doesn't know how to write their question without sounding overly dramatic or desperate. "Is there any way to do the same?" does not mean "Please enumerate all possible ways to solve this problem", it means "How to do X".
And "How to do X"-questions are exactly what this site is meant to answer, given a narrow enough context. Every question can ultimately be answered by "Use this assembly listing to instruct your CPU to move some values" (or butterflies), but that does not make every question too broad.
So can we please take a step back, and not jump straight to the close button when we read the words "any way", "opinion", "best practice", and so on, but perhaps help the (usually not natively English speaking) OP by merely editing out such terms that may make a question seem to have not enough focus?
Gimme teh answerz.
Just a couple of search results of closed questions that contain "is there any way" and are considered by some, but not me, to be not focused enough or otherwise off-topic, and as a bonus, something asking for opinions but answered with facts and references:
- Your opinion on declaring constants inside methods…? (deleted, 10K only)
- Is there any way to post events to Google Analytics via server-side API? - a simple question with a simple answer: use this particular HTTP POST format, [link to docs]
- How to create EditText with rounded corners? - a very common question in UI design, with very
roundstraightforward answers - How to find out "The most popular repositories" on Github? - is asking how to use a specific feature of a Git hosting website, a tool used primarily by (millions of) developers, with two links as answers. This is just as on-topic as asking where to find a particular setting in your favorite IDE.
- No matching client found for package name (Google Analytics) - multiple productFlavors & buildTypes - how on earth is that asking for multiple things?
Counter-examples from that same search:
- Database, Table and Column Naming Conventions? - definitely asking for opinions, answers are written from preferences, not references
- Best practices for API versioning? - questionable at best, it comes down to the practicality of having a version number in an URI versus in a request header. Brings out REST purists, which is usually a recipe for opinionated posts.
Or, more interesting, newish, closed, upvoted questions:
- What is the best way to create fallback for clamp()? - they're not asking for opinions, they're asking for the way with the most coverage in browser support
- tf.divide() and tf.cast() will interrupt the gradient propagation of my program. Is there any way to solve this problem? - how is this asking for multiple things?
- PHP native levenshtein 100x faster than custom implementation - is asking one question, namely why a PHP version of a built-in function is way slower. The answer is "because PHP is interpreted, and built-in functions are written in C"
- How to forecast monthly time series data with ARIMA or scikit-learn? - is machine learning not programming?
- C# comparing strings ignoring both: whitespaces, CR etc and cases - not sure what is unclear about "ignore whitespace and case in string comparison". The code they show does not solve their problem, but that's quite usual in questions.
- Is there anyway to obfuscate a public JavaScript file in angular(not external libraries)? - obfuscation is one problem, and they're asking for a built-in way without external dependencies.
And the list goes on and on. Note that many of those questions have factual, upvoted answers. Last but not least, one I recently answered:
- HTTP conditional requests - closed because it was perceived as being "about professional server or networking-related infrastructure administration"? Wat.jpeg?
To rehash, what I'm agitating against, is that "we" (close-voters) are expecting the OP to utilise the precise cantations required to not getting your question closed, while the OP may not be as fluent in Stack Overflowese and English as the community moderators.
Or, if I missed the memo that Stack Overflow currently only allows questions about debugging code, then please give me the link to it. For the record, with that I am not asking for off-site resources.
and
and not a logicalor
, but you reply to that saying they say "if any of those requirements are met". That confuses me a bit.