It seems like tag names about TS concepts follow the typescript-*
prefix pattern:
typescript-decorator
typescript-generics
typescript-types
typescript-declarations
typescript-definitions
typescript-class
typescript-namespace
ATTOW, they have several issues in common:
Most (except for typescript-class, which has a basic wiki and an excerpt) lack an excerpt and a wiki.
Most (except for typescript-generics, which has over 1K questions) have a low number of questions (under 100).
All of them have a low (under 10) number of watchers (even the typescript-generics tag).
All of them can be (and frequently are) substituted by builder ("constructor", "lego" - choose your poison) tags as for the most part these concepts are not TS-specific:
- typescript-decorator -> [typescript] + [decorator] (~300 questions)
- typescript-generics -> [typescript] + [generics] (1.5K questions)
- typescript-types -> [typescript] + [types] (~1.9K questions)
- typescript-declaration -> [typescript] + [declaration] (70 questions)
- typescript-definitions -> [typescript] + [definition] (~40 questions)
- typescript-class -> [typescript] + [class] (~600 questions)
- typescript-namespace -> [typescript] + [namespaces] (~150 questions)
Unfortunately, some of these tags suffer from problem #1: lack of wiki/excerpt:
1. definition has a particularly "useful" one, and some lack a TS-specific section
2. namespaces wiki lists only PHP, Python, .NET, and C++ examples
3. generics omits the notion of TS generics as well
4. declaration only has an excerptAlso, some might view class, namespace and similar as too generic (although a request to remove class has been declined before), which brings extra complexity to the issue at hand.
Given #4, we have two diverging tag naming paths that will be progressively harder to reconcile as time passes. On the other hand, the existing tags are not in their best shape, as well as being not very popular (see #3).
So, the question is:
what do you think would be the best way to deal with these tags (and should anything be done in the first place)?
Initial thoughts on actions that can be taken:
- Retag
typescript-*
to separate tags, expand the relevant wikis with TS info - Retag separate tags to
typescript-*
and create their wikis/excerpts - If choosing to retag to separate,
typescript-*
ones can be made synonyms of the former
As a separate concern, there is an astray typeguards tag which, despite its generic naming, is exclusively used by questions about TS type guards. Seems like it could be typescript-*
prefixed for consistency.
Found another orphan tag: mapped-types. Used exclusively by questions about TS mapped types, very low number of watchers (3 ATTOW).
Another one, conditional-types, fares slightly better with a basic wiki and excerpt. It is slightly ambiguous: at least 3 questions use it for C++ questions, so it either needs to be inlined with typescript-*
prefix pattern or probably made language-agnostic (like generics).
And another tag is index-signature. No ambiguity found, it just lacks wiki and except. Given the above, at least 4 more tags do not follow the typescript-*
prefix while being TS-exclusive in usage.
An aside: there is also a problem with narrowing and type-narrowing, which are basically the same tag used for the concept common to multiple languages, TypeScript included. Likely needs a standalone proposal to merge.
*-vba
tags are dead now at least. Agreed that excerpts/wikis aren't really useful (I am still unsure, though, of whether no one reads them because 99% of them do not have useful info or vice versa) - just trying to find something positive in case the ultimate goal flops. I like your notion of usefulness, though :)<language>-decorators
pattern consistently, so it makes sense to leave the typescript-decorator be.mapped-types
. The maintypescript
tag can get really polluted with questions about code that happens to be written in Typescript rather than questions about Typescript types. The feature-specific tags help myself and others find interesting questions.typescript-types
should probably be merged withtypescript-typings
or vice-versa. I submitted a wiki fortypescript-generics
a few days ago but it is still awaiting peer review. Here's a new tag with only 6 questions:variadic-tuple-types
typescript-types
as a potential synonym fortypescript-typings
back in October but no one has voted on it. stackoverflow.com/tags/typescript-typings/synonyms