Questions tagged [canonical]
is for questions about canonical questions or answers, i.e. those often used or referred to.
186
questions
33
votes
2
answers
568
views
Seeking Canonical: Non-returning PHP Recursion
I've scratched together a heap of open or suboptimally closed pages that are all resolved in the exact same way.
I would like to close them with a single canonical page that will best help researchers....
41
votes
8
answers
2k
views
How can we handle a question where the problem in the title is different from the problem in the body, and OP refuses to change the title?
This is the post. The title has usually been "How do I calculate square root in Python?", but the body is actually about a problem that's specific to division in Python 2 (namely that 1/2 ...
24
votes
0
answers
370
views
Looking for canonical dup about choosing include directories in C/C++ for relative '#include <foo/bar.h>'
In my favorite tags (cmake) I regularly see questions with the core problem like
I have specified include directory /some/dir/include/foo, which contains the header bar.h, but compiler cannot resolve ...
72
votes
3
answers
1k
views
Making canonical answers easier to find
How can we make canonical answers easier to find, especially from the review queue?
I was stumbling upon many Java questions with ArrayIndexOutOfBoundsException, being sure there must be some question ...
-1
votes
2
answers
410
views
Allow voting to close questions as duplicate of Articles
As far as I understand Articles are official "how-to" guides and as such represent and can serve as canonical duplicate targets.
Allow voting to close questions as duplicate of Articles.
...
16
votes
2
answers
839
views
How should THIS specific regex-based close/re-open/delete/un-delete war end?
Moderator note: This will be left up for a time while we debate a larger rule change. Do not take this as approval of the personal mentions of activity below (personal attack comments have been ...
1
vote
0
answers
112
views
Should we create a canonical for questions asking why HTTP requests work only in a specific scenario?
A very common question I often see takes the form of the following:
I have made an HTTP request in <Tool A> and it works. But when I try to do the same in <Tool B> and/or <Tool C> ...
-21
votes
1
answer
215
views
Appropriate response to questionable question closure [duplicate]
I recently answered a question and then that question was closed as duplicate of the usual canonical "null pointer exception" questions and my answer was downvoted.
As far as I am concerned, ...
34
votes
8
answers
1k
views
Are canonical duplicates useful anymore?
To quote CodeCaster's answer from Is there a canonical duplicate for "how do I fix my ArgumentNullException" questions? :
Over the years I kinda grew against closing questions as those very ...
22
votes
0
answers
730
views
What should be done with questions regarding unlocatable elements in Selenium?
A quick search in selenium brings up some questions like this:
I am doing automation with selenium, I have tried this:
[Some code of a Selenium automation, often with a complicated XPath query, and ...
-10
votes
2
answers
163
views
Should parallel versions of this question be created for other programming languages?
This question seems to be a useful dupe target for basic Java questions about debugging. It was written a long time ago and was apparently created intentionally as a reference for exactly that sort of ...
40
votes
3
answers
2k
views
Is there a canonical duplicate for "how do I fix my ArgumentNullException" questions?
I was reviewing this question from the "first posts" queue. Since it's asking more or less "How to fix my ArgumentNullException?", I instantly thought this question could be closed ...
24
votes
1
answer
677
views
Is there a canonical question for user-defined type guards in TypeScript?
I frequently see a question in the TypeScript tag where an asker does some logic that semantically should be enough to check that a given type supports a certain operation, but does not satisfy the ...
27
votes
1
answer
728
views
Should my canonical about read_clipboard usage in Pandas be on Meta or Main?
If you've ever tried answering questions in pandas, you'll know 90% of them cannot be answered unless the OP posts their data (or, at least a sample) that gives us an idea what they're working with ...
2
votes
0
answers
205
views
Reopen question on how to generate a readme programmatically in Python
I don't have any idea why this copped such a bad reception, but I'll try to improve it more if people have suggestions.
It's long, but I hope it's clear what is trying to be achieved (even if wasn't ...
16
votes
1
answer
455
views
Canonical Q&A for people that have problems with NoSuchMethod/called on null in [flutter]
I'm relatively new to Flutter. There seems to be huge amounts of people who are starting to work with Flutter and who have not heard of the concept of a null reference exception in Flutter or in other ...
16
votes
2
answers
518
views
Canonical question for issues relating to upgrading to Discord.js v12
There are a lot of questions relating to results from upgrading to Discord.js v12, most commonly dealing with the addition of managers and having to use .cache:
discord.js V12 'filter' undefined
...
41
votes
1
answer
2k
views
Canonical question for Java "resources in JAR"
Based on the community's positive response to my canonical question about Spring, I think it would be helpful to have a similar canonical about using classpath resources from JAR files or similar ...
6
votes
0
answers
102
views
A canonical Swift answer for "My function with an asynchronous call returns empty data"
There are already over 400 questions on StackOverflow with the Swift tag that relate to asynchronous execution. It feels like there has been a recent increase in the number of questions asked by low-...
5
votes
0
answers
143
views
Canonical Q/A for people that have problems with Future<T> in [flutter]
I'm relatively new to flutter. There seems to be huge amounts of people who are starting to work with flutter and who have not heard of the async/await concepts either in flutter or in other languages ...
1
vote
0
answers
127
views
Canonical question about different versions of Angular
Recently out of a specific need to know the breakdown, new features and changes within the Angular versions from 2 to 10 (current) to prepare for technical interviews, created a question in SO (https:/...
2
votes
0
answers
87
views
Is it OK to remove obsolete content from canonical answers that have updated by adding EDIT / UPDATE labels? [duplicate]
Some "old" answers that became obsolete over the time in an attempt to keep them up to date were edited to include relevant changes.
Here is one example
The current documentation (June 2013)...
5
votes
0
answers
151
views
Canonical question for "You do not have permission" in Google Sheets custom functions
TL;DR I'm looking for guidance regarding which question should be used as a canonical question for Google Sheets customs functions returning "You do not have permission"
This question is ...
5
votes
4
answers
180
views
What to do with "How to solve common errors in Google Apps Script development"?
Recently How to solve common errors in Google Apps Script development was posted had several up-votes but also was closed.
NOTE: This is not a duplicate of What to do about hundreds of the same basic ...
12
votes
0
answers
210
views
A way to identify a future popular question
After around three years contributing on SO I have noticed the following for many of the old questions I have answered:
They are popular with a big number of views and votes.
They didn't even cross ...
5
votes
1
answer
112
views
Answering own new generic question vs generic answer to existing specific question
Recently I've seen quite a few questions on the same topic, where each had a different problem (with provided code), but all stemmed from the same misunderstanding of the language feature being used.
...
9
votes
0
answers
76
views
Is there a canonical Q&A that explains TypeScript's type erasure and compile time vs run time behaviour?
I see a lot of questions who expect TypeScript to simply do something it cannot. They are based on a fundamental misunderstanding about what TypeScript does and how it works. The whole type system ...
-11
votes
1
answer
215
views
How can I make this question/answer more relevant it order to make it pop in the close as a duplicate dialog?
There is a question that would be very good duplicate target but I can't make it to show up in "suggested duplicates" dialog often enough to be used as duplicate target. I'm looking for edit ...
5
votes
0
answers
132
views
Is there a canonical dupe target for illegally mutating variables in react?
Every day, multiple times per day, questions pop up in the reactjs tag where the problem boils down to someone
Failing to use this.setState in a class component and instead trying to use instance ...
5
votes
1
answer
211
views
Should I perform a large edit on this useful Google Sheets scripting that is too long and not easy to understand?
There's this Q&A:
"SpreadsheetApp.getUi() cannot be called from this context"
As you can see, the question is huge, and the answer is correct but incomplete, so both need editing, and ...
4
votes
1
answer
75
views
Canonical for ODBC error: Data source name not found and no default driver specified
One very common question I encounter often is when connecting to a database, people get the following error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver ...
-12
votes
3
answers
360
views
How can generic questions in Stackoverflow have thousands of upvotes when this is something unacceptable? [duplicate]
Below you can see a great example of this:
There are no examples of what the user tried, no specifications, nothing. Just a "tutorial" question. How is this possible?
3
votes
1
answer
95
views
Dubious dupe target for JavaScript spread syntax
I came across a question asking "What does ... mean in JavaScript?" I assumed such a basic question must have been asked before, and unsurprisingly I found several similar questions:
Javascript what ...
-12
votes
3
answers
256
views
What to do when someone starts a "close as duplicate" on a canonical Q&A?
I'm a bit annoyed by this. Someone has decided to start a vote-to-close as duplicate on a canonical Q&A that I created:
What does "possible lossy conversion" mean and how do I fix it?
...
20
votes
1
answer
443
views
Can a reference question be used as a dupe target?
Here’s the specific problem I’m trying to tackle:
Roughly once a week, someone ends up posting a question along the lines of “Help! My GraphQL endpoint is returning null!” Unfortunately, the ...
13
votes
1
answer
430
views
Do we need a canonical for Python ModuleNotFoundErrors?
Lately I've noticed that we've got a lot of python questions about ModuleNotFoundErrors. As in, 3330 questions a lot.
Most of these questions seem to have the root cause of the module not being ...
14
votes
4
answers
500
views
Can I create this new question or will it be closed as a dupe or otherwise cause controversy?
What I want to do:
I wish to create a question:
Title: Print all lines between two patterns, inclusive (in sed, AWK or Perl)
Question: it'll look much like this one, but ask about the inclusive, ...
32
votes
7
answers
2k
views
Creating the Windows 10 calendar in VBA Excel: can we allow broad and useful "canonical" self-answers?
This is concerning the question: How can I create the Windows 10 calendar in VBA Excel?
This question has 4 close-votes and a lot of upvotes. It is a self-answer that appears broad… until you realise ...
12
votes
1
answer
308
views
Canonical question about the JavaScript supported version by Google Apps Script
Earlier this year Google launched a new runtime for Google Apps Script, Chrome V8, which is the default for new projects. This new runtime supports most of the features of ECMAScript 6 but not all (i....
-12
votes
1
answer
155
views
Is it eligible to post a question that contains informative links regarding a topic? [duplicate]
I was searching for the last few hours for the best practices for managing lists in Python but I couldn't find a single resource that contains all beneficial information about lists.
However, SO ...
12
votes
1
answer
400
views
Canonical(s) for Python infinitely-nested/recursive defaultdict questions?
There are many Python questions on how to do an infinitely-nested/recursive defaultdict, which one(s) should be canonical?
Nested insertion/creation of dictionary
Multi-level defaultdict with ...
16
votes
3
answers
303
views
Is there a canonical question for web-scraping techniques?
Maybe it's just the tags I follow, but web-scraping and tools that facilitate it seem to be very popular for questions these days. One category of question I see frequently is some form of:
I'm ...
27
votes
1
answer
935
views
Is there a canonical question for a common misuse of `or` in Python?
Every few days, I see one or two questions like this:
Why is "bad answer" never printed?
answer = input("Yes or No").lower()
if "yes" or "no" in answer:
print("good answer")
else:
print("...
8
votes
4
answers
238
views
How should we call the assumed original of a question marked as duplicate?
Some expert has marked a question as duplicate of another question. In my eyes that is totally correct. I made a comment to the asker that I think he should go to the 'original' question.
What I want ...
55
votes
3
answers
863
views
What to do about this deleted "canonical" question and its duplicates?
While looking at the result of my SEDE query for find duplicates of deleted questions, I noticed a rather large number of java questions about ArrayIndexOutOfBoundsExceptions that were all orphaned ...
15
votes
2
answers
628
views
Please help me improve my canonical post about dynamic evaluation in pandas
School's out for Christmas, and I recently found myself with a bit of spare time, so I wanted to find a better way to contribute here.
One of the primary tags I contribute to is the pandas tag. If ...
33
votes
1
answer
805
views
A canonical answer is not actually canonical; what to do?
C++ has this issue, which is called "most vexing parse". It is a never-ending source for duplicate questions. It seems that we don't have a canonical answer for that. But worse, we have a highly-...
13
votes
2
answers
529
views
How should we handle popular canonicals that ask two separate questions?
Every now and then I find a popular question that asks two (mostly) unrelated questions at the same time. Basically like "How do I do X? Also, how do I do Y?". Example: User input and command line ...
4
votes
1
answer
557
views
Canonicals for Python: are objects with the same id() the same object, `is` operator, unbound method objects
We need a Python canonical for the following category of questions, but the titles are pretty non-obvious and search-resistant, so we also need more dupe targets to be identified (or written). What ...
20
votes
0
answers
1k
views
Canonicals for "Why isn't len() a method in Python?" and Python len()-related things
There are multiple distinct questions on the following topic, so we need multiple canonicals. How can we come up with canonicals?
A longstanding source of Python new-user confusion, even predating SO ...