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.

Filter by
Sorted by
Tagged with
128
votes
2answers
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 ...
40
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 - ...
39
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?
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 ...
36
votes
5answers
774 views

What is the appropriate length of a Code Review question?

While Stack Overflow questions often contain segments of pseudocode or purposely abbreviated code in order to make the question more palatable to other readers, for something like a Code Review, the ...
34
votes
5answers
516 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 ...
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 ...
33
votes
6answers
496 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? ...
29
votes
3answers
736 views

Should you edit someone else's code in a question?

I have seen several (suggested) reviews lately, where someone edits the code in the original poster's question. Should such edits be allowed? The edits in question are mostly minor. Some add spaces ...
21
votes
6answers
421 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 ...
20
votes
3answers
356 views

Is it okay to add someone else's linked code to the question?

Some questions link to the code they want reviewed, which is against site policy. Should one edit the code into the question in these cases? The problem I see is that all content on Stack Exchange ...
20
votes
3answers
325 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 ...
19
votes
4answers
358 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 ...
19
votes
4answers
393 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 ...
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 ...
18
votes
3answers
254 views

Reviews of code not stored here

This question is inspired by a question I just saw: Review website done after one week of learning HTML and CSS How do we want to handle these issues? We wanted to avoid pastebins since having the ...
18
votes
2answers
465 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 ...
18
votes
2answers
352 views

Should code block(s) as answers always require an explanation?

Here is a great example of this. Granted, that was that user's first post, but this is still common. UPDATE: That example has since been updated, so consult the original version. This type of ...
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? ...
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 ...
16
votes
4answers
335 views

Should a post with no specific question(s) imply a general review?

I've started thinking about this more after seeing this question. I'm sometimes tempted to vote such questions as not clear what you're asking, but I also feel that it's not quite needed for this ...
16
votes
4answers
265 views

Homework Questions

We may soon see questions that are really part of somebody's homework. Given that this site is about advice and critique that can go as far as providing complete code alternatives should we be wary ...
16
votes
1answer
279 views

Put into FAQ: “Will submitted code be licensed under the copyleft CC-BY-SA?”

Put into FAQ: Will submitted code be licensed under the copyleft Creative Commons Attribution-ShareAlike (CC-BY-SA) license? I really want to know this! Since the CC-BY-SA is a copyleft, viral ...
16
votes
1answer
296 views

How long can code be?

First of all before, I hate the typical "codez plz" homework question. I hope this has nothing to do with that, but it is actually a class assignment. I won't post my code until it is completely ...
15
votes
4answers
550 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 ...
15
votes
2answers
567 views

Should specific questions about example code be on-topic?

I've noticed some questions, like the following, come up: https://codereview.stackexchange.com/questions/30092/map-then-iterate-why Inheritance and forcing methods to be called inside another method ...
15
votes
1answer
134 views

Handling Asker not learning from previous reviews

Recently, a certain user has asked three times for code reviews in quick succession, for different parts of a project he is doing. This in itself is perfectly fine. However, he does not seem to have ...
14
votes
3answers
204 views

Should name of programming language be in the title of a question?

Almost every question on the website has the name of the programming language in its title. Also words like feedback, review etc. are unneeded I think as that is this website's purpose. I wanted the ...
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-...
14
votes
2answers
232 views

What if we have an entire (small) application we want reviewed?

I asked about this on Stack Overflow, and was referred here (to Code Review), though I still think it may be out of scope for CR. https://stackoverflow.com/questions/12749863/where-can-a-n00b-...
14
votes
1answer
87 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 ...
14
votes
1answer
119 views

Code-correctness in the FAQ

As pointed by the poster of this question: https://codereview.stackexchange.com/questions/8609/dynamic-programming-algorithm-code-review, our FAQ states the following is on-topic: Code correctness ...
13
votes
4answers
608 views

Project Euler Solutions

I was thinking that some of my python solutions to project Euler problems might be good candidates for code review - pretty short little programs that I've tried to write well, but would love to get ...
13
votes
2answers
213 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 ...
13
votes
2answers
137 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 ...
13
votes
1answer
216 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, ...
13
votes
3answers
157 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 ...
13
votes
2answers
214 views

Can graphical notation count as code or should questions with exclusively graphical notation be considered off topic?

As a community, are we willing to accept graphical notation as a form of code that is subject to code review? I recently answered a question that asked for review of a database model as presented in ...
12
votes
4answers
177 views

Do we need to revisit code-golf questions?

The question of the role of code-golf on CodeReview was raised back in April. There was very little discussion, but there seemed to be a strong consensus at the time among meta users that code golf ...
12
votes
3answers
225 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 ...
12
votes
2answers
131 views

Confused by FAQ

The FAQ states [emphasis mine]: Code Review - Stack Exchange is for sharing code from projects you are working on for peer review. If you are looking for specific feedback about… Code ...
11
votes
2answers
137 views

Should we help others reinvent the wheel?

I've seen a lot of people asking us to review their DBAL, or MVC framework, or templating system, etc. While I totally support these people's efforts as a good way to learn, I think answering such ...
11
votes
1answer
359 views

Is pseudo-code alright when asking about performance?

The FAQ states: Is it actual code from a project rather then pseudo-code or example code? But oftentimes pseudo-code is a lot more straight forward and easy to evaluate. It also applies to a ...
11
votes
2answers
153 views

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

I came across a pretty simple question where the author explicitly states: The function returns the correct output, and all known edge cases have been accounted for. I took this at face value and ...
11
votes
3answers
180 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 ...
10
votes
2answers
199 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 ...
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
1answer
134 views

Questions that ask for you to e-mail them to get the code

What is the appropriate way to handle a question that doesn't post the code to review, but posts an e-mail address that you can I assume e-mail and get the code? A (now-deleted) example is: ...
10
votes
1answer
217 views

Should mostly working but a little bit broken code stay or be deleted?

I posted the question Parsing structured text in Java At first I thought it was working, later I have found a bug in the code. Should it stay or should it be deleted? Update: I have fixed the bug in ...
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 ...