13
\$\begingroup\$

My question is very much related to Stop mentioning major concerns in title.

Generic "My Code Smells. How do I refactor." titles are not very good for the site. I edit titles when I have a clear picture of what the code does, but I don't always know. When I don't, I leave this comment:

Welcome to Code Review! We're all here to receive constructive criticism of our code. Please try to include a title that describes what your code does.

How can I reword this to be more polite and friendly? I'm afraid what I'm using currently comes off a little harsh and rude.

\$\endgroup\$
5
  • 2
    \$\begingroup\$ Code Review, and now Comment Review... \$\endgroup\$ Commented Oct 10, 2014 at 22:59
  • \$\begingroup\$ Do we already have a snippet for the bigger sites, like Stackoverflow? That would be interesting as an inspiration. \$\endgroup\$
    – danijar
    Commented Oct 10, 2014 at 23:47
  • \$\begingroup\$ @danijar it seems to me that we give much more attention to titles than SO does. \$\endgroup\$
    – RubberDuck
    Commented Oct 10, 2014 at 23:55
  • 3
    \$\begingroup\$ @RubberDuck Than they can learn from us later on! ;) \$\endgroup\$
    – danijar
    Commented Oct 10, 2014 at 23:58
  • 1
    \$\begingroup\$ I like that attitude @danijar! \$\endgroup\$
    – RubberDuck
    Commented Oct 11, 2014 at 0:03

6 Answers 6

9
\$\begingroup\$

It's not really rude as such — you don't speak down to or insult the person — but I think it could be improved.

When you're trying to correct a behavior, it's important to explain:

  1. What the person did that's wrong;
  2. Why the behavior is wrong;
  3. What they can do to correct the behavior.

Your comment only touches on the third point, so without context as to why they should change the title, it comes across as a little terse. Add some explanation for the first and second points, and you might have something like:

Welcome to Code Review! We're all here to receive constructive criticism of our code. However, the current title of your question is very broad and doesn't really state the purpose of your code. We've found over time that questions with more descriptive titles get more attention from potential reviewers, so editing your question's title to describe what your code does will benefit both you and the people reviewing it. Thanks!

\$\endgroup\$
1
  • \$\begingroup\$ Beautiful. Just what I was looking for. Thank you. \$\endgroup\$
    – RubberDuck
    Commented Oct 10, 2014 at 16:25
6
\$\begingroup\$

I don't think your comment is rude. That being said if you wanted to soften it a bit and be more explicit about the "call to action" for the user, you could word it along these lines:

Welcome to Code Review! Your question title in its current form is ambiguous. Because we want to better understand your question so we can review it, please consider revising it to more accurately describe your specific code review question.

This response empowers the OP to "take ownership" of their own question (as opposed to just editing it for them), and provides them with a direction that should help them better articulate their questions in the future without being inflammatory or overly-critical.

\$\endgroup\$
3
\$\begingroup\$

How about:

Welcome to Code Review! We would appreciate if you edited the title of your question to describe the function of your code. There are at least 2 advantages to this: (1) It will get more eyes on your question, and (2) it will help reviewers provide a better review that is specific to your code in context.

\$\endgroup\$
1
\$\begingroup\$

I think the comment itself is not bad. In my opinion, you should explain to the user what's the plus value to change his title so it sounds more of a friendly advice than "do this otherwise your question will get closed" (which is not the case, we know it). Say that it is more likely the get attention if the title is interesting rather than "plz help me".

\$\endgroup\$
1
\$\begingroup\$

Here is the quick comment that I settled on. I added a link to How to get the best value out of Code Review - Asking Questions

Welcome to Code Review! We're all here to receive constructive criticism of our code. However, the current title of your question is very broad and doesn't really state the purpose of your code. We've found over time that questions with more descriptive titles get more attention from potential reviewers, so editing your question's title to describe what your code does will benefit both you and the people reviewing it. You may also want to read How to get the best value out of Code Review - Asking Questions. Thanks!

Quick Copy Paste Version:

Welcome to Code Review! We're all here to receive constructive criticism of our code. 
However, the current title of your question is very broad and doesn't really state the purpose of your code. 
We've found over time that questions with more descriptive titles get more attention from potential reviewers, so editing your question's title to describe what your code does will benefit both you and the people reviewing it. 
You may also want to read [How to get the best value out of Code Review - Asking Questions](https://codereview.meta.stackexchange.com/a/2438/41243). 
Thanks!
\$\endgroup\$
1
\$\begingroup\$

This is what I came up with. Stating what the community has to offer first makes it easier for the user to invest and enjoy doing so. Please let me know what you think.

Welcome to Code Review! We're here to help you getting feedback and improving your coding skills. However, the title of your question is not very specific in its current form. Could you come up with a more descriptive title, please? This helps keeping the high quality of this site and attracting more users to your question.

\$\endgroup\$

You must log in to answer this question.

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