One of the boring, recurring problems in the C and C++ (c and c++) tags is the questions that get tagged with both languages when only one is appropriate. This is annoying to the cognoscenti who frequent the tags; it is one of the routine tasks to castigate people (mildly) for dual-tagging and then remove one of the tags — though it is sometimes difficult to tell which is the tag to remove.
However, it seems that part of the problem is that Stack Overflow encourages people to use both tags:
Just took the 3 suggested tags assuming the system knew better than I did.
No wonder we get so many dual-tagged questions! (The third tag in this question was pointers.)
- How can we stop SO from suggesting both the C and C++ tags?
I see the question Disallow the tagging of questions with both C and C++ tags in the related (and/or linked) questions section on the right. This is different. I'm not seeking to prevent both tags; there are occasions when both tags are correct, usually when asking about how C and C++ interwork. This question is asking that SO not encourage dual tagging — not that it prevent dual tagging.
Other tag pairs with a similar problem
Although the motivating pair of tags was C and C++, there are many other pairs of tags that should not normally be applied to a single question. Extracting information from comments (and adding a spare):
- java and javascript
- mysql and sql-server
- android and opengl
- opengl and opengl-es
- angular and angularjs
- ar versus augmented-reality and other tags related to augmented or virtual reality (not a high volume problem, but another persistent one)
As I noted in a comment — lightly edited:
Can the code which suggests tags be tweaked so that there's a table of 'improbable dual tags' such that if two of the tags are listed in it and both are selected, then a pop-up occurs saying something like "It is usually not correct to use both
[tag1]
and[tag2]
on a single question — are you sure you should use both"? Entries in the table would be made manually when such pairs are identified — maybe the tag wiki section would allow suitably privileged people to nominate and vote for such pairs.
This is similar to, but arguably simpler than, the currently top-voted answer by user0042, with which I mostly agree.
Making this more general seems like a pretty good idea, actually. Only thing I would change is make it a moderator-only privilege, rather than a gold tag badge privilege. It doesn't need to be something that people fight over or change frequently (and there is already way too much fighting over [c] and [c++] tags).
I'm happy to have the 'suitably privileged people' be diamond moderators, but I wonder whether the suggestions would scale appropriately. Would there be a MSO question raised for each proposed pair. Is that desirable? It probably depends on whether the number of pairs of tags is in the tens or if it moves into the hundreds or even thousands. At larger scales, the wholly manual mode seems unlikely to be appropriate. (As well as a mechanism to create 'inappropriate tag pairs', there'd need to be a mechanism to break such relations. Again, questions on MSO can be used, and there should be less call for breaking such relations, especially if they have to be reviewed, approved, activated by diamond moderators.)
I'm tempted to tag this as a feature request, or even as a bug!
malloc
suggest c otherwise suggest c++". If you want this to actually get done you will have to make a very compelling case that it is worth it, because I'm not seeing SO putting this high on their todo list.C
C++
. As a newbie afraid of doing anything wrong, that's what I'd do. It should do so that some of them are exclusive - after C is chosen, do not suggest C++ any more from the list. It could be added naturally. But I don't see why it should be suggested after C was chosen.Java
andJavascript
. Other example isOpenGL
andOpenGL-es
. OrAndroid
andOpenGL
. I bet there are hundreds of other such examples.[c] or [c++]; [pointers], [undefined-behaviour]
User chooses one of the counter-indicated tags - remove the others from the view. They can still add them by hand. It is less of a trouble to add tags than to figure out whether the OP actually meant [c] or [c++].c
andc++
I would like a solution to the needless bashing of those of us that use both. I specifically asked for either ac
orc++
solution and got blasted. Yes both languages are different but sometimes either can be used to solve a problem. The 2 can be linked together rather easily. If I asked for a solution using eitherpython
orc
I probably wouldn't get the same vitriol.