Questions tagged [canonical]

is for questions about canonical questions or answers, i.e. those often used or referred to.

Filter by
Sorted by
Tagged with
2 votes
0 answers
92 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)...
Wicket's user avatar
  • 35.7k
6 votes
0 answers
242 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 ...
Wicket's user avatar
  • 35.7k
5 votes
4 answers
280 views

What should we 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 and had several upvotes, but it was also closed. NOTE: This is not a duplicate of What to do about hundreds of the ...
Wicket's user avatar
  • 35.7k
12 votes
0 answers
214 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 ...
Temani Afif's user avatar
6 votes
1 answer
126 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. ...
Jay's user avatar
  • 2,667
9 votes
0 answers
88 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 ...
VLAZ's user avatar
  • 27.6k
-11 votes
1 answer
220 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 ...
Your Common Sense's user avatar
5 votes
0 answers
138 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 ...
Jared Smith's user avatar
  • 20.6k
5 votes
1 answer
232 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 ...
Adelin's user avatar
  • 7,987
4 votes
1 answer
97 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 ...
Erik A's user avatar
  • 32.2k
-13 votes
3 answers
369 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?
user3858890's user avatar
3 votes
1 answer
97 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 ...
John Montgomery's user avatar
-12 votes
3 answers
269 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? ...
Stephen C's user avatar
  • 710k
21 votes
1 answer
542 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 ...
Daniel Rearden's user avatar
13 votes
1 answer
442 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 ...
Pika Supports Ukraine's user avatar
15 votes
4 answers
505 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, ...
Alex Harvey's user avatar
  • 14.9k
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 ...
wizzwizz4's user avatar
  • 6,281
12 votes
1 answer
334 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....
Wicket's user avatar
  • 35.7k
-12 votes
1 answer
181 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 ...
ndrwnaguib's user avatar
  • 5,880
12 votes
1 answer
675 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 ...
smci's user avatar
  • 33.4k
16 votes
3 answers
345 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 ...
Daniel Pryden's user avatar
27 votes
1 answer
938 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("...
iBug's user avatar
  • 36.5k
9 votes
4 answers
247 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 ...
yunzen's user avatar
  • 33.1k
54 votes
3 answers
872 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 ...
Ilmari Karonen's user avatar
14 votes
2 answers
629 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 ...
cs95's user avatar
  • 392k
32 votes
1 answer
836 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-...
anatolyg's user avatar
  • 27.5k
14 votes
2 answers
560 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 ...
Aran-Fey's user avatar
  • 41.6k
4 votes
1 answer
793 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 ...
smci's user avatar
  • 33.4k
22 votes
0 answers
2k 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 ...
smci's user avatar
  • 33.4k
16 votes
0 answers
350 views

List and pick canonicals for Python bound vs unbound string method?

Periodically we see Python questions about the difference between bound string methods s.meth(...) and unbound methods str.meth(s, ...). These don't get marked as dupes as they are heavy on syntax ...
smci's user avatar
  • 33.4k
26 votes
3 answers
1k views

What to do about off-by-one questions?

Is there anything we can do about the oft-experienced off-by-one error? I've noticed that a steady stream of questions from people who don't realize what the error means, and people who've made a ...
Andrew Li's user avatar
  • 57.1k
33 votes
1 answer
882 views

How can I add a canonical Q&A for a question that keeps showing up in similar forms?

I have been seeing a lot of questions come through in the Android tag recently that are all basically minor variants on the same core question. These questions usually get answered with basically the ...
Tyler V's user avatar
  • 10.5k
21 votes
0 answers
385 views

Canonical questions for general data structure manipulation in JavaScript? [duplicate]

Would it be a welcome addition to Stack Overflow to create a canonical questions about simple data structure manipulation in JavaScript? We get lots of really specific questions like this where it'd ...
Jacob's user avatar
  • 78.3k
15 votes
0 answers
471 views

Canonicals for R questions on valid/invalid identifiers and "Why do read/make.names modify syntactically invalid identifiers?"

There are many R questions related to "What is a valid/invalid identifier" / "Why do read/make.names modify syntactically invalid identifiers?" / "How to control/customize handling of invalid ...
smci's user avatar
  • 33.4k
21 votes
3 answers
628 views

General answer for questions that stem from folks that don't 'get' Promises

I follow a lot of Javascript questions, and whenever the 'Promise' tag comes up, I'd give it an 80% chance that the OP simply does not understand how promises work. It's very easy to find examples of ...
Evert's user avatar
  • 96.7k
15 votes
0 answers
519 views

Cleaning up the top questions on "python 2 super" according to Google

The top Google hits on SO for python 2 super are a bad mix of the obsolete, irrelevant and non-generalizable, from Python 2.5.2 to 2.7.x, along with known duplicates (but for some reason the canonical ...
smci's user avatar
  • 33.4k
4 votes
0 answers
48 views

Should the canonical answer for ArrayIndexOutOfBoundsException be generalized?

There is a canonical answer for ArrayIndexOutOfBoundsException in Java: What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? An ArrayIndexOutOfBoundsException is-a ...
Marco13's user avatar
  • 54.2k
3 votes
0 answers
63 views

Canonical for Python make/from_type classmethods/ multiple constructors?

There is no one single good canonical covering make/from_<type> classmethods/ multiple constructors in Python, and also Python has some language-design differences to Java/C/C++. How should we ...
smci's user avatar
  • 33.4k
14 votes
0 answers
2k views

Canonical for "Why are wildcards not being expanded by subprocess.call/run/Popen* / shlex?" or "Why isn't <cmd> working?"

Which question and answer should be the canonical for all the many well-trodden duplicates/variants on the Python theme "Why is my command not being expanded by subprocess.run/call/Popen* / exec/ ...
smci's user avatar
  • 33.4k
44 votes
3 answers
830 views

What should I do about a lack of good canonical questions?

I have been growing increasingly annoyed by the lack of good canonicals and the number of bad questions that are commonly used as duplicate targets. (Sometimes because there's no better alternative, ...
Aran-Fey's user avatar
  • 41.6k
10 votes
0 answers
136 views

Canonical for common new-user R errors with Logistic, Linear regression, GLM

What should be the canonical Q&A for these common new-user R logistic and linear regression Errors? Let's identify, and then please help close-as-duplicate. trying to predict a numeric variable ...
smci's user avatar
  • 33.4k
8 votes
0 answers
1k views

How to organize and assign canonicals for "Python/pandas compare IP address/CIDR"?

There are tons of Python/pandas/et al. questions on comparing IP addresses/ CIDR, but surprisingly almost no canonicals. Frankly it's one hell of a mess, and needs organization, cleanup. some ask ...
smci's user avatar
  • 33.4k
9 votes
3 answers
392 views

Canonical answer about Python string default/implicit encodings/conversions

There are about 2500 questions combined about UnicodeDecodeError and UnicodeEncodeError. Virtually all of them are caused by Python doing implicit transcodings -- which (like the Spanish Inquisition) ...
ivan_pozdeev's user avatar
4 votes
1 answer
99 views

Closed as duplicate on a question close as to broad (self proclamed canonical)

I recently end up on this question "How to use java.util.Scanner to correctly read user input from System.in and act on it?" That is a closed question ("too broad") based on a moderator a while ago. ...
AxelH's user avatar
  • 14.5k
2 votes
2 answers
455 views

How to improve a canonical question, that may appear to be "too broad"?

I keep finding myself posting an [mcve] link in comments to questions with either too much or too little code, but askers seem to be having a hard time actually producing a "Minimal, Complete, ...
IInspectable's user avatar
  • 49.4k
2 votes
0 answers
426 views

Canonical “Plz send codez” answer? [duplicate]

We have many answers about what to do about no-effort “Plz send codez” questions, but invariably we get enablers justifying doing these peoples' work for them with remarks like “we were all beginners ...
Dour High Arch's user avatar
31 votes
1 answer
573 views

Deciding a Canonical Question for R: How to load packages automatically/ by default?

I suggest we need a canonical for this (it comes up all the time, let's merge the duplicates into it). Below are my suggestions on what are duplicates, and non-duplicates, and why; let me know what ...
smci's user avatar
  • 33.4k
26 votes
4 answers
1k views

Is there a canonical for passing callback functions in JavaScript?

There are a lot of questions within the javascript tag that have to do with passing callback functions wrong, for example doing this: setTimeout(foo(), 3000); Instead of, correctly: setTimeout(foo, ...
Andrew Li's user avatar
  • 57.1k
12 votes
1 answer
712 views

Should I create a new canonical question? (C++ DLL optional parameters in C#)

While answering this question, I have come across quite a few similar questions (though it took a lot of digging): How to pass a nullable type to a P/invoked function P/invoke function taking pointer ...
River's user avatar
  • 8,825
42 votes
0 answers
1k views

17+ questions all on the same topic with no good answers

I have been trying to connect two computers together using Python and pass information between them. While I have a broad grasp of Python, my networking knowledge (stuff like public/private IP ...
Tom Burrows's user avatar
  • 2,295