2
\$\begingroup\$

We typically treat and as mutually exclusive. We don't tag the same question with both and . I feel we should do the same for TypeScript and JavaScript.

TypeScript needs to run through a transpiler to run in JavaScript engines. So TypeScript is not JavaScript. Additionally Is TypeScript really a superset of JavaScript?

If a question is tagged JavaScript and contains TypeScript I am more than happy to remove the JavaScript tag. I have zero interest in TypeScript and the frequency of its appearance with JavaScript makes the point of filtering questions by tag mute.

Alternately, is it acceptable to give a JavaScript review to code that is clearly TypeScript (well parts of it) but has the tag JavaScript. Effectively review it as very poor quality JavaScript.

\$\endgroup\$
4
  • \$\begingroup\$ I'm confident your question has already been answered on Meta in the past. \$\endgroup\$
    – Peilonrayz Mod
    Feb 17 at 0:01
  • 1
    \$\begingroup\$ @Peilonrayz are you thinking of the question I asked 4.5 years ago (which you answered the next day) - i.e. JavaScript concepts applying to JSX posts? \$\endgroup\$ Feb 17 at 0:07
  • \$\begingroup\$ @SᴀᴍOnᴇᴌᴀ Yes. I recall a number of additional meta posts that are very similar too. \$\endgroup\$
    – Peilonrayz Mod
    Feb 17 at 0:08
  • 1
    \$\begingroup\$ Unfortunately some OPs post questions with both a C and C++ tag. \$\endgroup\$
    – pacmaninbw
    Feb 17 at 0:15

1 Answer 1

1
\$\begingroup\$

Your question seem devoid of any explanation why tags exists, and your arguments don't seem to directly relate to why tags exist. So lets take a moment to focus on why tags exist.

Tags are a method for getting content in front of a target audience. Tags are typically used in conjunction with a search mechanism. However, as can be seen on sites like YouTube, users tend to tag content with irrelevant tags to exploit SEO. Where to a degree YouTube has reduced the importance of the tagging system. However since Stack Exchange has a large reliance on tags to reduce the attack vector (and maintenance needed) questions are limited to having 5 tags.

The tagging system is a two-way street. Firstly the asker is tagging to get answers to the question. Secondly answerers are filtering tags to get relevant questions.
An asker is likely to want to tag a TypeScript question with JavaScript to maximise the number of relevant answerers the question can reach. Even if the answerer only knows JavaScript the question is likely to still be relevant as ignoring the TypeScript specific aspects (typically not much of the question) the user can still comment a lot about the underlying JavaScript code.

Now lets focus on one of your arguments:

TypeScript needs to run through a transpiler to run in JavaScript engines. So TypeScript is not JavaScript. Additionally Is TypeScript really a superset of JavaScript?

... I have zero interest in TypeScript and the frequency of its appearance with JavaScript makes the point of filtering questions by tag mute.

TypeScript can be seen largely as a library. Granted one that expands on some of the language semantics. However many large libraries in JavaScript drastically change the programming style of the language. For example programming using Vue is a vastly different experience to vanilla JavaScript. And in my experience a vastly greater difference than TypeScript and JavaScript.

Lets say you don't like TypeScript or Vue the solution is simple. You filter by [javascript] -[typescript] -[vue.js] tags. The filter to my eyes does not seem mute and works quite well.

Alternately, is it acceptable to give a JavaScript review to code that is clearly TypeScript (well parts of it) but has the tag JavaScript.

Yes, you are allowed to do so.

As far as I know this can take two forms:

As can be noted the accept next to my answers indicate I have helped the OP. Answers should primarily be focused on helping the asker. How you think is best to help, is largely down to you.

Effectively review it as very poor quality JavaScript.

If what you mean is you'll say stuff like; "Your code looks like odd JavaScript, you code doesn't even run in any JavaScript engine." "Maybe you should actually write some JavaScript, not whatever you have posted."

Then please don't do things which aren't helpful.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .