... Okay, I want to walk back something I said in some other comments here. There is definitely a class of SO questions that get closed as duplicates inappropriately. I tend to forget about the first of the questions because it's not generally a suitable dupe target when it's used: it's a meta question, explaining how to fix your question, rather than actually answering it. But, as you might infer, that means your question should still be closed - it lacks debugging details.
I fought against this trend on meta: https://meta.stackoverflow.com/questions/426205 . Unfortunately, there's another incentive misalignment here: dupe-hammering the question allows users with a gold badge to act more quickly on questions that don't meet site standards but are likely to attract a quick answer that interferes with keeping the site clean.
The second one... honestly probably isn't the best version of the question, but it's attracted good answers and become "canonical". The problem is that thinking in terms of "variable variables" isn't necessarily the right way to think about the problem (dynamically modifying namespaces; or rather, the fact that Python's namespaces are reflected as objects that can in most cases be modified meaningfully) - but it does map pretty well to how a beginner would typically think about the problem. It just tends to overlap with other reasonable questions in a messy way.
On Codidact, I've attempted to address the problem space more proactively, but I think I didn't complete the project I had in mind.
> How much traffic do the questions that get duped to something bring? Especially the (currently) 410 questions linked to the Java NPE question. You get the couple of FGITW answers on it and the answer is over there, and closed to keep more people from trying to answer it (I hope the dup hammer is helping)... but now it's a closed question with 0 score, 100 views after a year... and five answers (one of which was accepted)... and no one will ever find it.
That was in 2014.
---
There are some misaligned incentives. There are probably people who dup vote to try to boost their reputation for some reason.
The problem (as I saw it) was that the tools of moderation and curation had too much friction and limits placed on them.
As the number of questions grew faster than the people who would curate them did, and the tools to curate them were diminished... you've got the problem of "there are two tools to curate and moderate left. One is to close the question. The other is to be a jerk to try to disincentivize the person from doing that again." I wrote about the second bit... a few years ago. Rudeness – the moderation tool of last resort -- https://shagie.net/2016/09/16/rudeness-the-moderation-tool-o...
Things like making it harder to not see low quality questions, or close them, or delete them...
> Thus rudeness and the attempt to drive an individual away because other moderation tools have run out or are ineffective. Rudeness is the moderation tool of last resort. When one sees the umteenth “how do I draw a pyramid with *” in the first week of classes on a programming site – how does one make it go away when the moderation tools have been fully exhausted? Be rude and hope that the next person seeing it won’t post the umteenth+1 one.
With respect to Stack Overflow, I believe that they've exhausted the people capable of doing moderating without rudeness and are now employees trying to moderate the core group rather than the core group empowered to moderate the site. Eventually, there will be no more left in the core group.
Other sites, with a narrower focus (e.g. GitHub discussions) are more able to handle the better focused questions and smaller user bases.
... Okay, I want to walk back something I said in some other comments here. There is definitely a class of SO questions that get closed as duplicates inappropriately. I tend to forget about the first of the questions because it's not generally a suitable dupe target when it's used: it's a meta question, explaining how to fix your question, rather than actually answering it. But, as you might infer, that means your question should still be closed - it lacks debugging details.
I fought against this trend on meta: https://meta.stackoverflow.com/questions/426205 . Unfortunately, there's another incentive misalignment here: dupe-hammering the question allows users with a gold badge to act more quickly on questions that don't meet site standards but are likely to attract a quick answer that interferes with keeping the site clean.
The second one... honestly probably isn't the best version of the question, but it's attracted good answers and become "canonical". The problem is that thinking in terms of "variable variables" isn't necessarily the right way to think about the problem (dynamically modifying namespaces; or rather, the fact that Python's namespaces are reflected as objects that can in most cases be modified meaningfully) - but it does map pretty well to how a beginner would typically think about the problem. It just tends to overlap with other reasonable questions in a messy way.
On Codidact, I've attempted to address the problem space more proactively, but I think I didn't complete the project I had in mind.