40

A new contributor just asked a very broad question, something like:

Can you write a simple broadcast script in JavaScript or php just give me an example or if you brief explain please explain

The question was quickly closed as needs details or clarity. However, a moment later this comment was added:

You should provide code example of what you tried. Otherwise, just ask chat.openai.com/chat for this.


Since ChatGPT generated content is not allowed, are comments where someone suggests using ChatGPT to write their code allowed?

What is the policy regarding this?

Should I flag the comment?

14
  • 55
    Flag them as no longer needed; they aren't useful or helpful, and they don't contribute to the Q&A.
    – Thom A
    Commented Jan 16, 2023 at 16:45
  • 34
    This comment should be flagged regardless of whether it recommends ChatGPT or not. It's simply not needed and never was needed.
    – Dharman Mod
    Commented Jan 16, 2023 at 16:51
  • @Dharman consider the comment be 'needed' is some sense, but they still recommend using ChatGPT, should it also be flagged?
    – 0stone0
    Commented Jan 16, 2023 at 16:53
  • 2
  • 5
    "Otherwise, just ask chat.openai.com/chat for this." - Is as helpful as replying with "Otherwise, just Google for this" is likely as friendly, so I would probably flag it as unfriendly and unkind Commented Jan 16, 2023 at 18:24
  • 34
    "chatGPT is banned" doesn't mean the mention of chatGPT is banned. It's not the tool that must not be named. Commented Jan 16, 2023 at 22:39
  • 2
    @Security Hound It is not as "ask google". Since ChatGPT is quite new, the OP probably didn't think about it. Moreover, it is for the moment unclear what GPT is good for. So pointing that GPT is good for that particular question is an helpful hint. Analogy : "how can I avoid typos in my code ? -- install a linter" Commented Jan 17, 2023 at 8:50
  • 1
    @LaurentClaessens truth be told, linters HAVE helped me to fix quite some issues while writing (typescript) code. Avoidance however is not possible since they only work on what you already typed :)
    – Gimby
    Commented Jan 17, 2023 at 10:16
  • 3
    @LaurentClaessens - Any comment that suggested OpenGPT instead of just submitting an answer would be considered unhelpful unnecessary and immediately flagged as “no long needed” which is identical to any comment that suggested I Google for my answer. OpenGPT is a unhelpful useless tool unlike a search engine. Commented Jan 17, 2023 at 12:30
  • @Dharman The comment is needed if the question is low quality because the asker has not shown the code that is not working. Commented Jan 17, 2023 at 13:21
  • 3
    @SecurityHood " OpenGPT is a unhelpful useless tool unlike a search engine." -- citation needed ;) I suppose that the OP does not know about chatGPT, or does not know that it is able to generate javascript. Giving a pointer to a tool that may help resolving the question is helpful. Commented Jan 17, 2023 at 13:23
  • 1
    by the way, just put the OP's question about broadcast in chatGPT will fix the question about its ability of giving something helpful. Commented Jan 17, 2023 at 13:24
  • Yeah, I have to agree with @LaurentClaessens on this one. IMO, you are forcing your subjective view on someone else. (In some time, maybe questions won't be excepted if they can be answered by AI.) There are so many comments out there that say something like "Just Google it", which are not flagged.
    – Hacker
    Commented Jan 17, 2023 at 15:27
  • A link to Chat GPT is NOT a ChatGPT-generated content. You should revise your question to mention other policies that are applicable to comments. This one is clearly not applicable.
    – papar
    Commented Jan 17, 2023 at 19:53

3 Answers 3

47

Mentioning ChatGPT in comments isn't banned. Posting content generated by ChatGPT is!

Comments can be used to ask for more clarification and/or provide constructive criticism about the post. All other comments can be flagged as no longer needed and deleted.

The comment you used as an example was never needed. The first sentence is an impolite request for a code example. The second one is just a useless recommendation that doesn't help to answer the question in any way.

Just flag as no longer needed. It's the same as a comment redirecting the user to Reddit, Quora, etc.

37
  • 11
    In other words, mentioning ChatGPT is not forbidden. It's forbidden to post content generated by ChatGPT.
    – Dharman Mod
    Commented Jan 16, 2023 at 16:59
  • 5
    I'm shocked that comments are not allowed to tell askers what they should do to improve their questions. Commented Jan 17, 2023 at 13:22
  • 3
    @user253751 They are allowed. The comment that was used as an example isn't telling the asker how to improve the question.
    – Dharman Mod
    Commented Jan 17, 2023 at 13:31
  • 5
    Generally, showing a failed attempt is an improvement of the question as it identifies specifically how the asker is stuck. Generating one with ChatGPT is not useful. Commented Jan 17, 2023 at 13:32
  • 2
    I don't agree. Often the failed attempt is a distraction.
    – Dharman Mod
    Commented Jan 17, 2023 at 13:32
  • 2
    Well, anyone posting such comments are likely posting ChatGPT-generated answers themselves. So a brief peek at their most answers wouldn't hurt.
    – Lundin
    Commented Jan 17, 2023 at 15:19
  • 11
    How is "Show us your code" (essentially the same statement as "You should provide code example of what you tried") not suggesting to the user how to improve their question? I agree that failed attempts at coding can be a distraction, but that's essentially what we get when we ask for an MCVE. Is "Please supply an [MCVE]" the only allowable comment nowadays, or is even that forbidden? Commented Jan 17, 2023 at 15:42
  • 2
    What have you tried is something else; it's a statement that implies prior coding effort is required to ask a question (it isn't). As a former mod, I understand the difference. Commented Jan 17, 2023 at 15:47
  • 3
    And for what it's worth, mods shouldn't make it their full time occupation to police comments. If a comment is genuinely harmful to the site, then delete it with great vengeance and furious anger. Otherwise, there are bigger fish to fry. Commented Jan 17, 2023 at 15:50
  • 4
    @JDB: This is what they are talking about. It's an actual ban, put in place by the Stack Overflow programmers. I just tried it, and it is still in effect: i.sstatic.net/UdlPg.png Commented Jan 17, 2023 at 16:00
  • 3
    @RobertHarvey A comment that just ask for their code is meaningless and comes down to the old "What have you tried". If there's something missing from the question, vote to close as "lacks MCVE" and in the comments explain what particular information is missing. A comment isn't required, but may be helpful to the author who may not know what exactly is missing from the question.
    – Dharman Mod
    Commented Jan 17, 2023 at 16:06
  • 5
    Sorry, but I don't agree. There's enough uncertainty about site mechanics (I haven't seen a 10 rep question view in years) to know that the OP may not have any idea what happened, or what to do about it, if you simply Vote to Close. That's the reason we have a comment system in the first place. To echo the words of your fellow mod below, "assume good faith." Commented Jan 17, 2023 at 16:09
  • 6
    @RobertHarvey - I know that "What have you tried?" is banned. But I'd like Dharman to provide backup for the assertion that "You should provide code example of what you tried." is banned. I have requested code examples more times than I can count for questions that don't provide any. "What have you tried" is way too open-ended to be useful, but asking for source code or an example is perfectly acceptable (given that it's in our own docs!)
    – JDB
    Commented Jan 17, 2023 at 16:39
  • 3
    The only questions that need a code example of what you've tried are debugging questions, @JDB. This is spelled out in the text of the close reason on the page you linked. The requirement for a minimal, reproducible example applies only to "[q]uestions seeking debugging help ('why isn't this code working?')". Thus, asking people who are asking a "how-to" question for a code example is silly, pointless, and wrong. It's also worth noting that, while on-topic, debugging questions are the least interesting & least useful additions to our knowledge base.
    – Cody Gray Mod
    Commented Jan 18, 2023 at 5:13
  • 7
    We don't care about the asker's understanding of the problem, @jpmc26; that's just noise in a "how-to" question, and it causes the answers that it produces to be less helpful to future viewers, which is who we primarily aim to benefit. We're not a help desk. It's not our job to assess whether the asker has sufficiently engaged their brain. If you don't think the question shows sufficient research effort, downvote it. It's not a close reason. It's only a close reason if the question is actually underspecified or overly broad. See also: meta.stackoverflow.com/a/260909
    – Cody Gray Mod
    Commented Jan 19, 2023 at 11:51
19

I'm assuming good faith of the commenter who genuinely tries to help the OP. Here's how I would rephrase it (that is: manually, I don't need an A.I. for this):

either provide your non-working code so we can suggest how to fix it

or - as your question seems very fit for ChatGPT, that you may not know so I'm providing you with the link - ask that A.I. and it may actually help you.

Since the question is pretty vague, you'll get a vague answer, but which may be informative, just don't rely on the accuracy of the code it should provide!

As long as the user doesn't post the ChatGPT reply as a self-answer (which violates our policy), that's fine. This technology can be helpful for personal use. Just not as answers to Stack Overflow questions.

The comment can be useful to the OP, and can be safely deleted (but as no longer needed only) after a few days.

2
  • 6
    It seems to me that the OP's next move will be to edit their question, insert the ChatGPT generated code, and ask for help making it work. Is that OK? If not, does it mean that the suggestion is bad?
    – tgdavies
    Commented Jan 16, 2023 at 22:52
  • 11
    @tgdavies see Should we flag human-written questions that use code generated by ChatGPT?. From the top answer: "Asking a question about ChatGPT output is no different from asking questions about other code you found somewhere, be that documentation, a tutorial, or another Stack Overflow answer."
    – starball
    Commented Jan 16, 2023 at 22:56
2

..are comments where someone suggests using ChatGPT to write their code allowed?

Pointing someone to a specific tutorial or API documentation page is great in a comment, but asking someone to Google their question is almost always discouraged (even if you offer to write the search terms yourself).

ChatGPT isn't significantly different from a search engine (except, perhaps, that it doesn't always cite its sources). While not strictly against the rules, I would strongly encourage users not to recommend ChatGPT unless the question is specifically about AI, etc, and ChatGPT would be relevant to the question.

Or put another way: if you could copy-paste the comment onto just about any other randomly selected question, then it's probably not a useful comment.

What is the policy regarding this?

The current ChatGPT policy is for copying content from ChatGPT and offering it as your own answer:

the posting of answers created by ChatGPT is substantially harmful to the site and to users who are asking and looking for correct answers.

Mentioning ChatGPT in a comment does not, strictly speaking, run afoul of this specific policy. However, comments mentioning ChatGPT aren't therefore exempt from all of our other comment policies. I think the most relevant is the one linked above regard LMGTFY

Should I flag the comment?

In this case, for the sake of efficiency, probably not.

Questions like this one are of such low quality that they are unlikely to have a very long life on SO. Nearly all other moderation efforts are moot if the author doesn't bother to write a question that will survive closure and eventual deletion (the only exception to my mind being unkind/abusive comments, where the comment author may need correction more than the question author).

Obviously you are thinking beyond this particular question, in which case the policy on telling users to "Google it" is, I think, most relevant:

Personally I'd flag such comments as not constructive.

The comment is indeed not helpful, not to the OP and not to future visitors. Either show how googling it would have found the information, or not comment at all.

We no longer have the "Not Constructive" category, so "It's no longer needed" would be the nearest corollary (""This comment is outdated, conversational or not relevant to this post."")

4
  • 1
    ChatGPT is a bit more than just a search engine. It is a language model that can respond to questions with actual answers, and it has the capability to write code. ChatGPT is more suitable for OPs that don't quite know how to ask proper questions (or who need a bit of hand-holding), something that Stack Overflow is generally not willing to accommodate. Commented Jan 17, 2023 at 18:44
  • 1
    LMGTFY is a different problem. It's in the same league as "What have you tried?" Civility is the key; if you're genuinely trying to be helpful and direct someone to a resource that can better assist them, I don't see how you can be faulted for that. Commented Jan 17, 2023 at 18:47
  • For the folks who really do need to Google their question first, my approach is: "A google search for [your specific question] yielded this as the first search result." Commented Jan 17, 2023 at 18:48
  • Your sample comment could arguably fall under "show how googling it would have found the information", but I don't think ChatGPT has deep linking. With the way you are suggesting to use ChatGPT, it is just a search engine. You'd basically just be telling the OP to go search for help somewhere else. Even if said very gently, it's not really useful to the majority of questions. That said, I probably wouldn't bother flagging a comment like that unless the author was being very rude. Bigger Fish To Fry™
    – JDB
    Commented Jan 17, 2023 at 19:46

You must log in to answer this question.

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