Questions tagged [canonical]
is for questions about canonical questions or answers, i.e. those often used or referred to.
178
questions
3
votes
0answers
40 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 ...
14
votes
0answers
1k 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/ ...
43
votes
3answers
794 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, ...
10
votes
0answers
126 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 ...
7
votes
0answers
810 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 ...
9
votes
3answers
299 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) ...
4
votes
1answer
94 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. ...
2
votes
2answers
438 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, ...
2
votes
0answers
407 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 ...
31
votes
1answer
571 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 ...
26
votes
4answers
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, ...
10
votes
1answer
699 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 ...
42
votes
0answers
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 ...
26
votes
1answer
2k views
Canonical Q/A for 'Module 'x' has no attribute 'y' in Python
This seems to come up quite a lot.
In Python, someone writes a script which has the same name as a module they want to import from it. The import succeeds, but when they try to access an attribute of ...
5
votes
0answers
385 views
Proposed canonical question regarding database subclasses
There is a question asked today that, I think, would make a good canonical question for a question that has been asked, with different specifics, hundreds of times here in Stack Overflow.
The ...
9
votes
1answer
349 views
How best to canonicalize all the “Python write list(/variable/data structure) to file”-type questions?
There are 22 questions and growing on [python] file TypeError: expected a string or other character buffer object, which you get whenever you try file.write() for anything other than a string: a list, ...
3
votes
0answers
31 views
Edit canonical question to ask about new related feature?
The question here asks and answers "What do the u and r prefixes to strings mean in Python" and is a valuable and oft-used dupe target.
In a recent version of Python, an extra prefix was added: f ...
32
votes
2answers
1k views
What to do with all the questions about scanf?
You've probably seen it. The thousands of different questions where the solution is changing scanf("%c to scanf(" %c, that is, put a space before %c. At first it was funny, but I do get tired of it ...
3
votes
0answers
222 views
How to close unsolvable “crashes in main.m” for iOS/macOS?
A while ago I added a tutorial link to the iOS tag wiki about how to fix application crashes in iOS. (It applies to macOS equally BTW, but that's not the point.)
Obviously, many question askers don't ...
18
votes
1answer
236 views
Should “Why not upload images of code on SO when asking a question?” be a FAQ?
It seems like Why not upload images of code on SO when asking a question? is now the de facto standard reference post on the topic. This hasn't actually been proposed as a FAQ, but can it be promoted ...
15
votes
1answer
232 views
Canonical question for using PHP SimpleXML with namespaces
Over and over again, people ask questions about SimpleXML (the PHP built-in XML library which is, well, simple), because either:
They don't know that : in a tag name denotes a namespace (e.g. most of ...
5
votes
2answers
138 views
Create a similar question for a different framework (Unity)
There is a well known C# question about what a NullReferenceException is and how to fix it.
Unity which has the Unity3d tag on Stack Overflow uses C#, but I noticed a-lot of Unity questions with the ...
4
votes
1answer
505 views
Do we need a reference post for Kotlin vs. Java for Android development?
Ever since Kotlin was announced as an official Android language, I've seen numerous questions about the difference (is it replacing Java? Which should I use? Etc.) Would it be worthwhile to just ...
11
votes
0answers
534 views
What is the proper way to write proposed FAQ questions and answers?
A few months back I posted a question about whether or not questions about the Linux kernel are on topic here. It seems like it's something that a reasonable number of people are confused about, and ...
3
votes
0answers
53 views
Summary self-answer - close as multiple dup or links?
Should question created solely as navigation guide (somewhat canonical) to be closed as duplicate of many or provide answer with links to specific topics(as CW) or have real answer (and possibly ...
30
votes
4answers
947 views
How can I title a question about a problem that doesn't have a common description?
Recently I wrote a self-answered question, addressing one certain problem, that causes a lot of questions on Stack Overflow that usually get wrongly closed with incorrect dupe target.
But got a ...
7
votes
0answers
131 views
Java “ClassNotFoundException” canonical question
I meet each day dozens of similar questions where people claim about java.lang.ClassNotFoundException in java.
Just recent examples:
java.lang.ClassNotFoundException:org.apache.tika.sax....
14
votes
3answers
504 views
Should we have a canonical virtualenv question?
I realize, of course, that virtualenv is a whole tag, and having a single question summarizing the whole topic is beyond the scope of the site. I want an introductory question that goes over enough ...
-1
votes
2answers
112 views
Using a canonical duplicate to close a syntax error question [duplicate]
Recently I stumbled upon a question about a basic PHP syntax error.
The problem was not too hard to understand, but before any answer was posted, the question was marked as a duplicate of a wiki ...
22
votes
3answers
430 views
Does Documentation deprecate canonical dupe target lists? [closed]
There are various old "What does this symbol mean" lists of community wiki canonical dupe targets which seem to have a great acceptance by the community, like
Reference - What does this symbol mean ...
12
votes
1answer
559 views
Canonical question for R gotcha: colon operator takes higher precedence than arithmetic
It is a frequent R gotcha that 1:10+5 does not do what you expect it do. All of us R programmers have been bitten by it, usually several times.
Surprisingly, although it comes up a lot, we don't seem ...
-7
votes
1answer
500 views
Canonical question explaining differences between “var”, “let” and “const” in JavaScript
This is a follow-up to my question User refusing to correct misinformation in their popular answer. Please take a look at it before reading this question. I'm posting this question because after 5 ...
15
votes
3answers
364 views
The “What does this symbol mean in PHP” reference is a mess
This reference question has been frustrating me for a while: Reference - What does this symbol mean in PHP?
I'm not opposed, in general, to creating reference Q&As that are just link collections, ...
5
votes
0answers
118 views
Is there a canonical question regarding Java DateFormat Unparseable date?
I see lots of questions like this:
DateFormate gives unparsable error
i got the error java.text.ParseException: Unparseable date
SimpleDateFormat ParseException: Unparseable date Error
The answers ...
4
votes
0answers
1k views
Creating a dupe target to manage a plethora of duplicate questions
On the asp.net-mvc tag, a few times a week (and I've seen as many as three in one day) a question is posted with the title along the lines of
The model item passed into the dictionary is of type .. ...
3
votes
0answers
65 views
Is there a canonical Python reference mutation question?
This question came up on my review queue, and I'm wondering if there's a canonical version of these "X variable (or name or whatever they're called in Python) gets mutated by changing a different ...
-21
votes
1answer
139 views
Should we be nicer when dupehammering? [duplicate]
We all know the situation, someone posts a NullPointerException or unresolved external question and the dupehammer falls in short order.
Now, these canonical questions have ten or fifteen answers to ...
8
votes
1answer
271 views
Java “logical vs bitwise operator” cleanup
We have these:
Difference between & and &&
Differences in boolean operators: & vs && and | vs ||
Why do we usually use `||` not `|`, what is the difference?
And possibly more....
2
votes
0answers
37 views
Do we have a canonical question about writing files to disk, from a web page, with Javascript?
Skimming through the front page I found this question:
Javascript Write to Textfile
This is something that has been asked so many times before that my first thought was "I'll just mark it as a ...
24
votes
4answers
770 views
Can anyone suggest a good generic “turn this JavaScript object to this JavaScript object” question for duplicates?
Basically I'm a bit fed up of questions along the lines of
Here's a JavaScript/JSON object I need to be this similar but slightly
different JavaScript/JSON object. Please can someone do this for ...
15
votes
1answer
404 views
How many “How many objects are eligible for garbage collection?” questions are eligible for garbage collection?
Everyone knows Java has garbage collection but apparently no one knows how it works so we keep seeing variations of the question "How many objects are eligible for garbage collection?". Here are a few:...
8
votes
0answers
119 views
Request: Canonical question about not throwing away exception details
Quite often I stumble upon code which uses exception handling incorrectly; in particular, which throws away exception details. Examples:
// Example 1: swallow exception
catch (Exception ex) {}
// ...
3
votes
0answers
68 views
Canonical “My JavaScript isn't working” question for the answer “IDs must be unique”?
Is there a good canonical question we can use to close duplicates of questions (like this recent one) that are basically "My JavaScript code doesn't work" to which the answer is "You cannot use the ...
36
votes
1answer
739 views
Can I self-answer a question in order to demonstrate a modern approach?
OK, let's say that there's an API. And in that API, there is a function. This function is critical for modern use of that API, so lots of people use it.
However, this function is woefully designed. ...
36
votes
1answer
724 views
The topic area “.NET async/await/TPL” needs a canonical answer on cooperative cancellation
In the .NET space there has been a lot of interest in things like async, await and TPL in the recent years. A very common issue is that someone expects cancellation to be one of these:
immediate
pre-...
3
votes
0answers
117 views
Procedure and requirements for writing a canonical question/answer [duplicate]
I noticed over the last few days that one particular problem keeps showing up. I went searching for a good canonical question to deal with all of these and wasn't satisfied with what I found.
I wrote ...
2
votes
0answers
65 views
Canonical question for Cartesian product
I just came across several recent questions asking variations of "how to find all possible combinations of multiple lists", and I regularly see similar questions. The reason that people post new ...
9
votes
1answer
326 views
Should we do something about “unsupported format character” questions?
There are a lot of questions about this Python error.
As far as I can tell, they're all basically the same: either a % wasn't escaped, or the type specifier (s or d) was missing from a %(name) ...
4
votes
0answers
87 views
Proposal for a “watch” tab?
I wasn't able to find something similar through search. If there is, let me know and I'll delete the question.
As much as I like that we already have a favorites tab for starring questions, I feel as ...
4
votes
0answers
133 views
How to ask for a canonical answer to “How to fix 1064 error?”
In this question https://stackoverflow.com/questions/36731837/how-to-fix-1064-error I'm hoping to get a canonical, generalizable, answer to a problem that seems to vex a lot of beginners in an area ...