26

I saw this question a few minutes ago: https://stackoverflow.com/questions/42651522/what-langauge-is-this-syntax

It started to get downvoted pretty quickly, which was curious to me. I looked at the tag to see if this was the case for other questions. (This tag is currently the question's only tag). Whereas the tag is not highly used, the other questions did not suffer the same fate of downvotes, even though they are of similar content and format (ie- short, small code snippet, "What's this language?" as the only real txt). The other questions are also relatively old at this point.

My thought is that the OP has just run across a handful of those in the community who didn't like it, but it made me wonder so I wanted to ask here.

Is this type of language identification question acceptable?

For those that can't see deleted question:

question-screenshot

6
  • 4
    This question is the "most famous" question tagged language-identication. As it is pretty similiar to the one you provided, I don't understand why one is -15 and the other well-downvoted (+17).
    – Mistalis
    Commented Mar 8, 2017 at 8:06
  • 2
    @Mistalis Yeah, exactly. That was what sparked my curiosity and led to this question.
    – squillman
    Commented Mar 8, 2017 at 12:53
  • @Mistalis: Clearly the association with Stack Overflow's 404 page distinguishes that upvoted question from other random language identification questions. That reason alone enables it to have value to future readers. (Although arguably it ought to have been posted on Meta.) Random "what's this programming language" questions have no such justification.
    – kjhughes
    Commented Mar 8, 2017 at 13:44
  • 1
    @kjhughes Agreed, that's what I tried to explain in this burninate request.
    – Mistalis
    Commented Mar 8, 2017 at 14:02
  • For what it's worth, "language identification" is also a task in text processing, where you sometimes need to idintify the human language of a piece of text (English, Russian, Japanese, etc).
    – tripleee
    Commented Aug 2, 2021 at 15:51

3 Answers 3

63

How could this question ever possibly be useful?

Who's going to find a question like this? Even if someone else has virtually identical code, they're still not going to find this question. They couldn't; there's nothing in the question (or any possible answer) that's going to be searchable by anyone else with an even remotely similar problem.

19
  • A very fair point, and I agree. But things like these made me wonder: stackoverflow.com/questions/3089531/… and stackoverflow.com/questions/5316001/what-language-is-this. So maybe it is that the community has turned the corner and recognizes this as low quality now.
    – squillman
    Commented Mar 7, 2017 at 15:34
  • 5
    @squillman Sure, and some people will upvote questions that entertain them, regardless of their usefulness, which is unfortunate.
    – Servy
    Commented Mar 7, 2017 at 15:36
  • 9
    language-identification tag, why does it even exist then ? Commented Mar 7, 2017 at 16:48
  • 15
    @AntoinePelletier Because someone who didn't know better added it. Just like 90% of all of the tags on the site. The existence of a tag doesn't mean that the content the tag describes is on topic, or that it would be useful, it just means that someone created the tag when writing one of said questions that doesn't belong.
    – Servy
    Commented Mar 7, 2017 at 16:49
  • 11
    @AntoinePelletier That doesn't really scale all that well to the scope of content on the site.
    – Servy
    Commented Mar 7, 2017 at 17:02
  • 2
    Possible uses: I have inherited a code base to maintain, with little to no support--what OTS do I need to install to get this working? What technology do I need to learn? I failed a computer-related certification test and need to know what to study to pass next time. (All real-world examples experienced by me, coworkers, and my wife). That said, I would say the question may need editing to add more context, to be useful (or discover-able). Commented Mar 7, 2017 at 23:03
  • 3
    @OgrePsalm33 Okay, so, given that you just inherited a code base, how do you expect to find this SO question with it's similar code in the same language? How do you know that it's the same language and not a similar, but slightly different language?
    – Servy
    Commented Mar 7, 2017 at 23:06
  • 2
    @Servy Context or a larger snippet would definitely help. Sure, this may never be a slam-dunk, and you're right, trial-and-error (in the inherited code base case) may be the only way to figure it out for sure. But other than pulling your hair out or giving up in frustration, relevant content somewhere on the internet beats no content anywhere, and something like symbolhound might get you close. Is SO the place for such content to find a home? Well, I guess that's we're trying to figure out. Commented Mar 7, 2017 at 23:33
  • 2
    As it is off-topic, I've created a burninate request for this tag.
    – Mistalis
    Commented Mar 8, 2017 at 8:26
  • 2
    Could you not make this searchable? Replace the question "what language is this syntax?" with "What server-side language has brace-percent signs as a delimiters in html?" (followed by the example).
    – dave
    Commented Mar 8, 2017 at 8:41
  • 3
    I found it searching "{% extends "_layouts/default" %}" site:stackoverflow.com in Google, it was the first result :P
    – Yates
    Commented Mar 8, 2017 at 12:04
  • 1
    @ThomasYates And do you find it when you provide very similar, but not textually identical code?
    – Servy
    Commented Mar 8, 2017 at 14:08
  • 1
    @Servy it depends on what I remove. If I remove default or _layouts, yes. If I remove them both, no, I didn't look further than the 3rd page when I tried that, but who does anyway. I can understand these questions being valuable when the code comes from a well-known framework, many people may ask themselves the same question about the same piece of code, but not from random code snippits.
    – Yates
    Commented Mar 8, 2017 at 15:18
  • 1
    For whatever it is worth, after I posted the question, I was given a very helpful answer and I was able to get on the right track. I understand the question may not be searchable or help others but without the help of the quick responses, I would have to research else where. I think it is ok to down vote it or remove the OP; but I think there should be a tag/area where developers can ask questions to other experts for quick simple responses.
    – Arcadian
    Commented Mar 9, 2017 at 1:11
  • 3
    @Arcadian And yet the site doesn't exist for people to post questions that can only ever help them. It's specifically designed to not be that. It's designed to create a repository of knowledge that makes the internet a better place by improving the information avaliable for all programmers searching for answers to their questions. It's not a free private tutoring service or a free consulting service. If you want someone to tutor you, or a consultant to help you with your work, hire one. SE isn't the place to get such services.
    – Servy
    Commented Mar 9, 2017 at 14:21
-7
  • Stack Overflow is a site for programmers.
  • In order to be a programmer, you must know at least one program language. Or if you are a would-be programmer ("enthusiast"), at least know the basics of one programming language.
  • Questions of the form "what is this?" followed by source code, with no context, cannot per definition have been posted by a programmer of that language, or they would know what language it was.
  • Therefore such questions are off-topic, for the same reasons as questions of the nature "what is programming?" or "what is the x programming language?" are off-topic.
4
  • Questions of the form "what is this?" [...] cannot per definition have been posted by a programmer of that language, or they would know what language it was. Therefore such questions are off-topic. -> Well, I don't think this is why those questions are off-topic.
    – Mistalis
    Commented Mar 9, 2017 at 9:15
  • @Mistalis Why not? How can a non-programmer ever post something that is on-topic for this site?
    – Lundin
    Commented Mar 9, 2017 at 10:00
  • 5
    I think, those questions are off-topic because they won't help anyone except the OP, not for the reason you mentioned.
    – Mistalis
    Commented Mar 9, 2017 at 10:03
  • 1
    @Mistalis There is no "too localized" criteria on Stack Overflow any longer. https://meta.stackoverflow.com/questions/252034/where-did-too-localized-go. It was removed during the "shittify Stack Overflow" close vote reform couple of years ago, together with "OP must have minimum knowledge of the topic". The same reform encourages homework questions etc.
    – Lundin
    Commented Mar 9, 2017 at 10:08
-9

We should keep this question and others like it. "hard to Google a similar question" is not an explicit reason for closing something. The close reasons people have used to remove this question and others like it are clearly wrong - e.g. "Unclear what you're asking" or "Too broad".

Sure, it's an implicit reason, but we can't easily tell whether a particular fragment of syntax will be a common enough idiom to steer Google here, or might become so in the future.

Clear lines between "on-topic" and "off-topic" make it much easier to use the site as a asker, answerer or reviewer.

You must log in to answer this question.

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