by physicsguy · 2y ago · 0 comments
I vividly remember asking a question before was different in a subtle but important way from existing ones (which I'd seen) and it got marked as a duplicate.
Also your answer sounds like your average SO moderator's :)
I, for example, frequent almost exclusively the Java tag and I can assure you that the question we mark as duplicates the most are very few:
- How to compare strings in java (because people keep using == instead of `.equals()`
- Why doesn't this class/array change when I pass it to a method (because java is pass-by-value, not pass-by-reference)[1]
- What does "cannot find symbol" mean (where the duplicate target helpfully explain in what cases this could happen, including, but not limited to "you declared it inside a loop so it's not visible outside) [2]
- Why my scanner skips reading a line in this loop (because every time you use `nextFoo` where `Foo` is not `Line` you need to read the newline as well before continuing)[3]
The other sort of questions we tend to close are the one easily answerable by learning any basic tutorial, the ones that tell us "my code doesn't work" without showing their code, the ones that just dump their homework and expect us to write a solution. And casual user rarely see this questions because we usually also delete them, but I can assure that most of our moderation time is spent handling this kind of stuff, not closing as duplicate.
On the other hand, one kind of question that is not well received but IMHO should not lead to closing or downvoting (but it does) is "I want to do this weird and non-idiomatic thing. How do I do it}". Unless, of course, it's an actual XY problem, in which case it helps if the person asking the question states why they want to do such a thing.
All of this to say, your experience with the site will vary depending on what technology you're asking about.
And "your answer sounds like your average SO moderator's" yes, it does, because we use the site a lot and we know what we're talking about :)
[0] https://stackoverflow.com/questions/513832/how-do-i-compare-...
[1] https://stackoverflow.com/questions/40480/is-java-pass-by-re...
[2] https://stackoverflow.com/questions/25706216/what-does-a-can...
[3] https://stackoverflow.com/questions/13102045/scanner-is-skip...