Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

10
votes
2answers
185 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 ...
18
votes
3answers
171 views

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

What I’m refering 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
121 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
54 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
407 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
19 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? (...
7
votes
0answers
66 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 ...
13
votes
2answers
202 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
194 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
34 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?
18
votes
4answers
363 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
508 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
178 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
115 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,...
32
votes
6answers
422 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
81 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
77 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
107 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
99 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
176 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
73 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
105 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
140 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
52 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
191 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
155 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
131 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
98 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 ...
6
votes
2answers
107 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
52 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
345 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 ...
121
votes
3answers
14k 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
118 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
92 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
112 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 ...
35
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
288 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
123 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?
31
votes
2answers
755 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
495 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
44 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
264 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 ...
11
votes
3answers
170 views

Could incomplete or not-quite-working code be suitable for review?

I've noticed that sometimes I end up reviewing code despite the question's violation of our policy that it must contain working code. I bring this issue up because it is related to Changing wording ...
36
votes
1answer
1k views

How to post a follow-up question?

Sometimes I stumble upon follow-up questions, where code is being posted again after having gone through a review (or two). Examples of possible sets of follow up questions: Find missing numbers - ...
4
votes
5answers
259 views

Complaint about rollback policy / bug fixes

I posted some useful code on code review. One of the answers suggested an improvement to the code. I agreed and made the improvement to the code, and left the comment "Thanks, fixed". A moderator ...
6
votes
2answers
69 views

Is asking for correctness check on-topic or not?

As per this and this question on meta, asking about correctness is on-topic yet this question was closed. The comment given was: This question appears to be off-topic because it is about reviewing ...
3
votes
1answer
28 views

“SQL sometimes times out” - on or off topic?

No question similar to this came up in the fancy box, so I am going to ask it so that it can be referenced. Store Procedure Timing out sometimes? It gives code that sometimes times out for the user, ...
13
votes
2answers
127 views

Is asking for review of 3rd party code ok?

Most code people are posting here seems to be code they have written themselves. In this question the OP asked basically for a review of three 3rd party scripts. I'm not sure that this question is a ...
9
votes
1answer
119 views

Reviewing usefulness of code

I was wondering if, as part of asking for a review here, can I ask about how useful my code is? That is, getting feedback about what possible use-cases the code I have written has and if people would ...