37 votes
Accepted

Why are alternative solutions not welcome?

The site's name is Code Review for a reason. We review the code in question by pointing out mistakes, bugs, edge cases, etc. with an explanation. Just dumping some alternative implementation without ...
Heslacher's user avatar
  • 50.4k
26 votes
Accepted

How should we deal with askers fixing off-topic questions when an answer has been posted?

Answers to off-topic questions are already invalid One way to look at this is to say that if a question is invalid, it should be closed and not answered. Answering an invalid question sends exactly ...
Edward's user avatar
  • 66.4k
20 votes
Accepted

Policy regarding "flooding" Code Review with questions

To be completely clear: homework[1] [2] and coding challenges are on-topic. Issues with tags should be edited, it's rare to get questions with perfect tags - I get them wrong all the time too. This ...
Peilonrayz's user avatar
  • 43k
17 votes
Accepted

Is there a limit to the number of answers a user can post to one single question?

<moderator-hat> The first thing that comes to mind is "this user is trying to somehow abuse the system to farm upvotes, badges, and reputation score." ...
Mathieu Guindon's user avatar
17 votes

Why are alternative solutions not welcome?

Why are alternative solutions not welcome? They are. Note the text: You have presented an alternative solution, but haven't reviewed the code. The problem is not that it shows an alternative ...
mdfst13's user avatar
  • 21.5k
17 votes
Accepted

Should votes to close a question as containing broken code be paired with a comment?

Yes I am a comment lover. Comments helps a lot. Especially when it's not crystal clear for everybody that the code is not working as intended. Sometimes it's even good if two or more users ...
Simon Forsberg's user avatar
16 votes
Accepted

Disable Anonymous Contributions

Disable anonymous users editing posts
Peilonrayz's user avatar
  • 43k
15 votes
Accepted

Removing leading white space in question code blocks

In general you shouldn't be editing code in the question, but instead reviewing it. But there are at least two cases where it's fine to make an exception: Where the poster has fumbled the formatting. ...
Gareth Rees's user avatar
  • 49.6k
15 votes

Alternate solution - what counts as an insightful observation?

The problem starts with the question, which is barely on topic and would be a better fit on Stack Overflow. That said, a comparison between your original answer and Reinderien's seems to illustrate ...
Peter Taylor's user avatar
  • 24.1k
13 votes
Accepted

Can I include problem statements when posting exercise solutions to Code Review?

You can, and you should, so that reviewers can better understand and contextualize your code. But that doesn't always mean that you should copy & paste the problem statement verbatim. All ...
Malachi's user avatar
  • 28.6k
13 votes
Accepted

Is it allowed to edit code if there is no answer?

Sure you can edit your question/code if there are no answers. Just don't place alternative code-junks without adding the comperative-review tag. Replacing the code in question is fine without ...
Heslacher's user avatar
  • 50.4k
13 votes
Accepted

Should we improve the code to be reviewed in an edit?

This specific case is a bit unusual in that the edit was "suggested" by a user with the same username as the original author. Note also that the original author's account is unregistered, which ...
Vogel612's user avatar
  • 25.2k
12 votes
Accepted

Should we censor rude language in comments/strings of posted code?

Language in Posts and editing profanities generally For this section, let's assume that profanity was not forbidden Stack Exchange is a site for users starting at the age of 13 (16 in EU). It's also ...
Vogel612's user avatar
  • 25.2k
12 votes

What Site Policy should we have for code written by ChatGPT?

A growing number of users are posting content that violates policy by including ChatGPT generated content. Warnings and suspensions have been handed out. Details about how we catch and/or handle these ...
Mast's user avatar
  • 13.3k
11 votes

How should we deal with askers fixing off-topic questions when an answer has been posted?

I used to place a comment on an answer of an off-topic question, stating that the answerer should refuse to answer off topic questions. Sometimes this went well and the answerer removed his/her answer,...
Heslacher's user avatar
  • 50.4k
11 votes
Accepted

Reviewing non-working code when author thinks it's working?

If we take a look at https://codereview.stackexchange.com/help/on-topic we see To the best of my knowledge, does the code work as intended? if the OP answered this for him/her-self with yes, then the ...
Heslacher's user avatar
  • 50.4k
11 votes
Accepted

Are responses to specific interview questions on-topic?

My opinion on this issue is that there are many ways for people to get through interviews ahead of other qualified people, it normally comes down to being better prepared for the interview, or being a ...
rolfl's user avatar
  • 97.3k
11 votes
Accepted

What Site Policy should we have for code written by ChatGPT?

As you say, that would be posting code not written by the asker. However, we do allow code that is maintained by the asker, and it would seem to fall into that category. That's not quite enough, as ...
Toby Speight's user avatar
  • 74.5k
10 votes
Accepted

Dealing with defamation and site-policy

These specific cases What happened in these specific cases (and what happened to the flags) is pretty simple. The comments got deleted. Unsubstantiable accusations of vote abuse are a violation of ...
Vogel612's user avatar
  • 25.2k
10 votes

Negative engagement, ganging up, question closing, downvoting

There's a gigantic disconnect here. I would have felt better if those capable of interacting with the question positively had done so (which indeed they did, and I am very grateful to them for ...
Mathieu Guindon's user avatar
9 votes

Is there a limit to the number of answers a user can post to one single question?

Is 'flooding' allowed? I vote for NO, let's not allow this. At what point does answering become 'flooding'? When two answers (of the same user) don't conflict. That is, two answers conflict when ...
janos's user avatar
  • 111k
9 votes

Should votes to close a question as containing broken code be paired with a comment?

As the moderator involved, I'm obligated to respond. This specific question I have to admit, it was a complex decision process for me, with many factors to consider. Code Review is a place where ...
200_success's user avatar
9 votes

Reviewing non-working code when author thinks it's working?

Unfortunately, your question is based on a faulty premise. The code to be reviewed consists of a makeBst() function with one test case. That test case produces ...
200_success's user avatar
9 votes

Are responses to specific interview questions on-topic?

We already have a policy set out from when we discussed homework. The ethics of answering a homework question before it is handed in Should we review code that can be used in an unethical/immoral/...
Peilonrayz's user avatar
  • 43k
9 votes
Accepted

How to best motivate posters to migrate their question to another site?

Question which are on-topic on Code Review What is the best way to motivate posters to move their posts to a better site? "Better". A common pattern on Stack Overflow is closing a question ...
Peilonrayz's user avatar
  • 43k
8 votes
Accepted

Review that targets code that makes the question off-topic, then question is updated

Traditionally, answers to off-topic questions (especially to those questions that are obviously off-topic) are not considered valid answers for the purposes of answer invalidation rollbacks. We'd ...
Vogel612's user avatar
  • 25.2k
7 votes
Accepted

(Optionally) add Python sub tags to questions

The problem you are pointing out, as you very well know, is inherent of Python itself, where a piece of code falls into one of 4 categories, roughly from most common to most rare: Works only in ...
Phrancis's user avatar
  • 20.4k
7 votes

Punny/Playful Titles Policy

We can do better. It is possible to write a title that is both informative and punny. Compare these two titles: (Original) Hangman my logic compared to others (New) A different way to execute a ...
Laurel's user avatar
  • 666
7 votes

Is there a limit to the number of answers a user can post to one single question?

There were originally five answers from @MarianD: PEP 8 formatting Replacing while i < len(text) loop with for c in text Use ...
200_success's user avatar
7 votes

Hot Network Questions Policy

What do you think? When should moderators use their powers to move a question out of the HNQ list (knowing it can't get back on afterwards)? Should moderators intervene at all? Well, I think you ...
Der Kommissar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible