Questions tagged [site-policy]

Site-Policy is the way the main site is run and managed - processes, procedures, and routines that should be followed. Use this tag when you believe site-policy has not been applied correctly to a main-site question, or when you believe existing site policies should be modified, or new policies added.

13
votes
1answer
214 views

Policy regarding “flooding” Code Review with questions

There seem to be a few users which "flood" Code Review with questions recently (2 to 4 questions in rapid succession). They often present relatively small pieces of code, allegedly from homework, ...
8
votes
1answer
74 views

Warn if question is tagged with [python-3.x] but not [python]

Given that 16/50 of the latest python-3.x questions aren't posted with the python tag,[1] and site policy is to tag with both.[2] Can we move the burden onto the poster to tag properly, rather than ...
13
votes
3answers
154 views

Hot Network Questions Policy

As of recently, moderators have the ability to remove a CR question from the HNQ list. There are times when the hotness formula selects a question that a site would rather not have featured. Up ...
2
votes
1answer
56 views

I found a (trivial) solution to my problem after submitting it

About Counting primes in a range whose digits are all prime. My code had a bug, the bug was an edge case that only manifested in literally one of the test cases, (I identified it by completing the ...
4
votes
2answers
99 views

Should we allow answer invalidation for otherwise off-topic questions? [duplicate]

We recently had a question with un-compilable code. The question was answered and the answerer pointed out the broken code. The user has since edited the question to fix the code. It was rolled-back. ...
10
votes
2answers
194 views

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

If I have kept working on the code, and there are no answers (say one week after the original post), am I allowed to edit the code to reflect the changes I have made to it? I believe this question is ...
19
votes
3answers
275 views

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

What I’m referring to mostly started with this edit where strong language that possibly originated as a joke from the OP was flagged as rude and removed from the question entirely. The code in the ...
7
votes
1answer
136 views

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

I have several books of programming exercises that I am working through. I would like to post some of my solutions to Code Review. Can I include problem statements along with my solutions without ...
2
votes
1answer
57 views

How should I fix a problem in my code (which is not addressed in existing answers)?

Some time ago I posted a series of two questions: On Knuth's "Algorithm L" to generate permutations in lexicographic order Sequence-based enumeration of permutations in lexicographic ...
21
votes
6answers
417 views

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

Example situation1 We have a user that finds a question and posts an answer for each and every change they would make - commonly being a single low-hanging fruit point, but not limited to it. It ...
0
votes
0answers
25 views

Ok to repost code after incorporating suggestions? [duplicate]

If I've had a piece of code reviewed here, what's the consensus about posting the update for another review? Also, assuming it's ok, should it be an edit to the existing question, or a new post? (...
18
votes
2answers
432 views

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

I done a quick search to see if this has been asked, but it didn't seem to be. The intent behind this question is from how this question was handled, but is not limited to it. The situation is an ...
7
votes
0answers
69 views

Tags “Types” and their Usage

This is a question spawned from @Mat's Mug's comment on a question I had about a tag removal. It seems that there is some consensus among the more senior users here about the way some tags should be ...
9
votes
2answers
170 views

(Optionally) add Python sub tags to questions

The lack of version tags on some Python questions leads to reviewers having to 'pre-scan' the code to find out if it's Python2.7, Python3, both or neither. This seems strange as, I'd have thought that ...
13
votes
2answers
206 views

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

First off; I'm not looking to enforce this via systems; just as a community guideline. As an example to showcase my issue, here's a review that may pop up in the review queue for Close Votes. It's ...
8
votes
2answers
197 views

Removing leading white space in question code blocks

I've made a couple of suggested edits to this question. The first one was rejected because it deviated from he original intent / it edited code. When I looked at the suggested edit, it did look like ...
1
vote
1answer
36 views

Do I have to include the dependency codes while posting my code?

Do I need to post dependency codes which are in the actual code I need to be reviewed?
19
votes
4answers
389 views

Punny/Playful Titles Policy

Related: How can we avoid redundant titles? When you ask a question on the main site, the watermarked instructions say: State the task that your code accomplishes. Make your title distinctive. This ...
33
votes
5answers
513 views

Migration paths to other sites

If you can cast close votes, you now have a new privilege! Up until recently, only moderators could migrate an off-topic question to Stack Overflow or Programmers.SE - if you haven't noticed yet, the ...
17
votes
3answers
193 views

What are our answer editing guidelines?

On this site, we have a well-known policy on editing code in questions: Don't. After all, that code is up for review, in all its glorious ugliness and buginess. But clearly, such reasoning cannot ...
6
votes
1answer
117 views

Commenting on faulty code

In this question, https://codereview.stackexchange.com/q/107700/78136, the OP has not gotten the code to compile, and is on its way to be closed. This I understand, and are not debating. My question,...
33
votes
6answers
482 views

Is code ever clean enough? - Can there be too many follow-up questions?

Some posts can at times have several follow-up questions, sometimes a couple of follow-up questions on the same day. All this brings us to the question of Can there be too many follow-up questions? ...
14
votes
1answer
86 views

Do we want site-specific editing guidance?

With our newly reached "graduated" (I really shouldn't put that in quotes) status, I expect a significant influx of new users, be it through migration or otherwise being drawn in by the thrill of a ...
6
votes
4answers
78 views

Would Code Review be a good site to post formatting questions?

I've been thinking recently that Code Review might encapsulate Code Presentation style, such as: Helpful comments and documentation. Indentation/bracketing style. Overall code structure. Of course, ...
8
votes
1answer
112 views

Major bugs caught in questions

I wrote a question, but forgot to thoroughly re-test my code after I made a modification and before I posted the question. I was notified of a major bug by mjolka (thank you!) in chat, such a major ...
2
votes
1answer
102 views

Cleaning up the original code in the question

Most of the reviewers/answerers here should be familiar enough with Ctrl+K and Home,Shift+▼,Del keystroke combinations that an edit to provide some readability without losing the original content of ...
14
votes
3answers
187 views

Process to follow when un-answered questions have a follow-on

This question was asked a couple of weeks ago, and has not been answered in that time. It has languised: https://codereview.stackexchange.com/questions/79233/edmonds-karp-algorithm-for-maximum-flow-in-...
9
votes
1answer
76 views

Can I post both my code and link to the external repository?

I have read the guidelines and FAQ, and understand that code up for review should be posted on this site. I also understand that modifying the code after it is posted goes against the rules as well as ...
5
votes
4answers
114 views

Selfie code-only answers as an offsite link

This question Gees - GPL Euler equation solver and its revisions were recently affected by this policy we have about how to add selfie-answers to your question Specifically (I have bolded the ...
2
votes
3answers
146 views

Should we reconsider the code ownership policy?

This question of mine (10k required) was put on hold with the explanation This question does not appear to be a code review request within the scope defined in the help center. Please see the ...
1
vote
0answers
54 views

Is it advisable to share the link of the entire project on Code Review? [duplicate]

I would like someone to review a small PHP project of mine - the entire source code of which has been uploaded on Github. Is it advisable to share the link of the entire project here on Code Review?
18
votes
3answers
194 views

I've observed many toy/homework questions

It appears that many review requests are for toy or homework examples (e.g. FizzBuzz). Is this observation correct or am I mistaken? If observed correctly, I have the following questions: Is it good ...
7
votes
2answers
162 views

Strict requirements around code examples in questions leading to counterproductive results?

Here's a post that exemplifies my question: Extension method to enumerate a hierarchical object Looking at the history, all I can think of is "poor OP." Several items of note: In an attempt to ...
18
votes
1answer
135 views

Old messy questions

Considering the somewhat-still-new guidelines we have for editing own question to include revised code, how should we handle old questions which violates this guideline and are, more or less, a mess? ...
-2
votes
2answers
102 views

Asking for a suggestion: partially obscure the source code

When I have a short piece of code which doesn't contain any sensitive data and I strongly think that it could be published here I still often avoid unless it's a project of mine. (I'm not worried of ...
7
votes
2answers
113 views

Attribution and Copyright of Problems

How should it be handled if a user asks a question where the original problem is from some website and under copyright? For example this question quotes a problem from a website which says at the ...
9
votes
1answer
55 views

Old Meta questions about policies we have since changed

Should we downvote answers to old questions since they no longer support current policy, so that new users searching for answers don't find these posts and get led astray? Example(s): https://...
19
votes
4answers
356 views

Should comparisons of code snippets be closed as “not seeking a code review”?

I've been seeing some "A vs. B" questions for a while, and I'm not sure if they're considered on-topic for this site. Many of these questions are not asking for a review, but which code snippet is ...
125
votes
3answers
15k views

For an iterative review, is it okay to edit my own question to include revised code?

Is it okay to edit the question to include the improved code? I would like to do so for the following reasons: To share the improved code with others To show the answering persons that I take their ...
10
votes
2answers
133 views

Should we retain unanswered questions from deleted users?

Background We've had a user who asked many questions, mainly follow-up questions, some of which lacked sufficient detail and a review request. Due to some issues stemming from issues of the user and ...
10
votes
2answers
94 views

Can I use posted programs as inspiration?

I often am stumped for ideas of what I want to try making next with my tiny Python vocabulary. Most things I think of are either too big or I'm not sure where to start, and so Code Review seems like a ...
9
votes
1answer
116 views

What to do when working, non-example code is too much code?

In this question, I'm trying to ask about best practices for inner classes in Java, but it got closed because I only posted the code skeleton of the class structure and important methods. The problem ...
38
votes
8answers
1k views

Short answers and code-only answers

What should we do with: Short answers (for example, "I suggest you use [hyperlink to this standard API] instead.") Code-only answers (for example, an improved version of the code in the OP) Such ...
3
votes
2answers
312 views

Review code on Github? [duplicate]

Someone might sometimes want a review of a longer length of code: for example this question references some code stored here on their private web site. It isn't necessarily feasible or desirable to ...
5
votes
1answer
128 views

Do questions about grammar belong here?

This question is mostly about grammar, not about code: PEG.js grammar for parsing CSS selectors In my mind, grammar reviews do not belong on Code Review. Does Meta agree?
38
votes
2answers
1k views

Can I put my code on a third party site and link to the site in my question?

Is it OK if I write a question and include a link to GitHub/Pastebin/other similar site instead of putting the code here on Code Review?
34
votes
2answers
1k views

Why is only my own written code on-topic?

I tend to disagree with point #2 on the Help Center: Did I write that code? I believe any code, written by one self or anyone else should be eligible for code review. Many a times, you're ...
16
votes
4answers
532 views

Questions should include a description of what the code does

Related: What criteria do you use to upvote a question? What makes a good question? I feel that it is currently too easy to copy some code that you have written and put it up for review here on Code ...
1
vote
1answer
49 views

Reviewing unoptimized code in public repo. Are these type of question appropriate?

Currently I have a problem from a system that is not working properly (ref in Stack Overflow). It surely has many issues that might be related to both code optimization (PHP) as well as DB ...
5
votes
1answer
276 views

Is this appropriate for codereview.SE?

I had some confusions about a particular piece of code that I wrote: Thoughts on refactoring a generic DAO. I placed it on programmers.SE when I thought it was just a design thing. Now I am thinking ...