Questions tagged [scope]

Use this tag when examining what is on-topic or off-topic, and why.

188
votes
1answer
8k views

A guide to Code Review for Stack Overflow users

You're on Stack Overflow and you've found a question that seems to be about improving code. You are trying to be helpful, and you put a comment in the question: You should try asking on CodeReview....
35
votes
4answers
598 views

Code Review vs. Help me solve my problem

A question that asks: I don't know how to best solve problem X, can you suggest a way? ... is clearly off-topic on Code Review. A question that asks: I have solved problem X, and this is how I ...
34
votes
5answers
5k views

My question was closed as being off-topic. What are my options?

I can understand that sometimes questions are closed as being too opinionated, too broad, or unclear, but my question was closed as being off-topic. I have read the On-Topic Help Center page for Code ...
29
votes
4answers
1k views

Why is hypothetical example code off-topic for Code Review?

As stated in the Help Center, one of the criteria for a question to be on topic is: Is it actual code from a project rather than pseudo-code or example code? What is the rationale for that ...
27
votes
3answers
243 views

Is asking for a review of boiler plate for a minimal repro okay?

For asking and answering questions on Stack Overflow with certain frameworks and libraries I have boilerplate lying around for a minimal repro. I would be interested in getting feedback on my WCF ...
26
votes
6answers
820 views

How should we revise the standard off-topic reasons, if we can have up to five?

Note: For chat-like discussions of this subject, let's use this Discuss Close Reasons chat room Code Review currently has three standard off-topic reasons: Questions containing broken code or asking ...
25
votes
5answers
313 views

Do one-liners and other narrowed-down code qualify for a code review?

Every once in a blue moon, a question gets posted (often as a new user's first post) where the OP is asking a quite specific question about very minimalistic code, for example: ...
24
votes
4answers
461 views

Reviewing “design”

It has been said in various comments that on Code Review we review code and not design. I find this statement not very clear though. Obviously, if someone has an UML and not any written code, that's ...
23
votes
6answers
231 views

If SO had a standard off-topic reason for code review requests, how should it be worded?

We have long been fighting a battle against Stack Overflow users who vote to close questions with custom reasons like I'm voting to close this question as off-topic because it belongs on Code ...
22
votes
8answers
591 views

How much idle chatter do we tolerate in The 2nd Monitor?

Related but not a duplicate: How far off-topic can we get in 'the 2nd monitor'? Today was a complicated day in the history of The 2nd Monitor. On one side there appears to be consensus something ...
21
votes
5answers
948 views

Is [lolcode] reviewable?

Down with FizzBuzz created a lolcode tag. Some (cough) brainfuck (cough) are even further down the esoteric alley. Given our current site rules, I'd tend to agree. I don't think allowing lolcode ...
21
votes
1answer
429 views

The Guiding Principles of Code Review

What do you believe are the Guiding Principles of Code Review? What are the purpose and mission of the site? Recently (and not so recently) a lot of effort and hair-pulling has gone into discussing ...
19
votes
5answers
333 views

What IS a Code Review?

So, this site is called "Code Review"... What we do here is... ask for and write Code Reviews, naturally. However, I feel that there are a whole bunch of different thoughts floating around about ...
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 ...
18
votes
1answer
163 views

What's on and off topic in The 2nd Monitor chat room?

Exactly what is considered strictly off-topic there? Anyone can assume the obvious: NSFW (Not Safe for Work) are off topic, and should be flagged. Anything else?
18
votes
3answers
183 views

Reviewing AI based on how it performs

On Code Golf is is common to see a king-of-the-hill question where you have to implement an AI based on the rules given in the question. So then I got to thinking - "If I developed an AI for one of ...
17
votes
3answers
367 views

They asked me to write awkward code – how did I do?

Recently, somebody was given a homework assignment with an exercise specification that left much to desire. Yet, they've tried to make the best out of it and managed to write some code that seems to ...
16
votes
5answers
236 views

Are questions with undiscovered bugs allowed?

Re: Connect 4 in C++ Situation: The OP, a beginner posted code with several bugs in it. They said they thought the code worked okay, because they hadn't discovered the bugs during their testing, ...
16
votes
5answers
375 views

Can we revisit “Did I write that code myself”?

Did I write that code myself? This is one of the six questions the help center recommends users should be able to answer "Yes" to before posting their question. I'm not sure I quite understand ...
16
votes
2answers
176 views

Does this question belong on Code Review? Should it go to Code Golf?

I posted this question about how to rewrite a C# algorithm in fewer lines of code, preferably using extension methods, which prompted a discussion in the comments about whether it was appropriate for ...
16
votes
3answers
190 views

Can we review spreadsheet formulas?

So, this question has been bothering me for a long time now. It is asking for a review of one line of "code" which is really a spreadsheet formula. Actually, it's not even asking for a review in my ...
16
votes
7answers
211 views

One Question Per Question

I voted to close this question as being "Too Broad," on account of the fact that it's actually five, independent questions. At the very least, an answer would have to address all five questions, so it'...
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 ...
15
votes
2answers
221 views

Are we allowed to ask questions about just regular expressions?

Are we allowed to ask questions just about regular expressions?
15
votes
3answers
176 views

Are code snippets with known memory leaks broken?

As part of our check-list for questions on CodeReview, we require that code is working to the best of the askers knowledge. Does code with a known memory leak qualify is broken per this rule? On the ...
15
votes
2answers
239 views

Nothing to review

This question claims to implement the Nothing language. I'm citing the language specification (emphasis mine): Note: if the output does not meet the expectation of a "hello world"-program, this ...
15
votes
1answer
160 views

Can I ask for review for something specific without posting too much context?

I'm working on an Angular2 application and I think one very small, specific function (list filtering) needs improvement and I would welcome reviews. Essentially I iterate more times than I think is ...
15
votes
2answers
189 views

Do configuration files constitute reviewable code?

A question asks to have a Samba configuration file reviewed. Do we consider a configuration file to be code? It's certainly not a Turing-complete language. Is Turing completeness a defining criterion?...
15
votes
2answers
602 views

“Time Limit Exceeded” and programming challenges

Lately I've seen many questions pertaining to Project Euler and similar that have problems with time limit exceeded. And this prompted the question, are these questions on topic? I mean, the 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
3answers
257 views

The gray areas of Code Review: Hypothetical / Example code

This is related to Why is hypothetical example code off-topic for Code Review? Which is related to On-Topic question #3: Is it actual code from a project rather than pseudo-code or example code? ...
14
votes
4answers
207 views

Code requiring a third-party pre-processor to make it work

In this Wolves, Goats and Cabbages in Java question (here is a link to the pre-edited version), Java code is presented to solve the problem. The code requires pre-processing by a third-party tool in ...
14
votes
4answers
85 views

Questions about documentation

Are questions about writing/improving documentation appropriate and on-topic for Code Review? And if so, should there be a documentation tag? Let's be clear--I'm not talking about questions seeking ...
14
votes
6answers
232 views

What should we do about questions asking to “fix” warnings?

Around the time of writing this post, this question was asked: Extension method to list enum values. The OP is asking how to "fix" their code so a specific warning doesn't pop up (emphasis added): ...
14
votes
2answers
226 views

Code that handles n% of test cases but not all

I've started noticing recently questions like this one (66%, not well received) or that one (50%, well received) where the author states something like this: I am trying to solve this problem on ...
14
votes
3answers
147 views

“How secure…” questions - Code Review vs. Information Security SE

Recently I have seen a whole lot of questions in the form of "How secure is this hashing", "How secure is my keygen?", "How secure is my form?". We do have a quite popular security tag, with 159 ...
14
votes
2answers
222 views

Are Scratch questions okay on Code Review?

I want to post a scratch project on codereview for people to give feedback at, but im worried that it would get downvoted and flagged for being off topic. So are scratch projects allowed? And if not, ...
14
votes
2answers
142 views

Does a simplified and self-contained code constitute 'real code'?

I am currently developing an Android application, which makes use of tabs. Because I faced some problems when updating individual tabs in the UI, I have created a new app whose sole purpose is to act ...
14
votes
1answer
85 views

Are Code Golf King-of-the-Hill controller programs allowed here?

I am in the process of writing a KOTH challenge for Code Golf (it's on the meta sandbox), and like for all KOTH challenges I need to write some code to pit everyone's bot against each other. I've done ...
14
votes
2answers
161 views

Questions that are “I did this, it seems to work, how did I do?”

I've been an active member of StackOverflow for more than two years, and have a decent amount of rep on some other SE sites like Programmers, Code Golf and here. But the one type of question that ...
14
votes
1answer
267 views

Does a single shell command constitute reviewable code?

A question asks to have a command-line invocation of FFmpeg reviewed. Is that reviewable code? There is currently no language tag, though shell unix could be added. Let's not discuss whether a ...
14
votes
1answer
105 views

Clarification as to why a question was closed as off-topic

An old question that was posted 3 years ago was put "on-hold" as off-topic. I have not been an active participant on Code Review (I received a notification thanks to a down-vote a couple of days ago),...
14
votes
1answer
143 views

Are questions about LaTeX documents on-topic?

A few reasons to allow them: I recently found that there are best practices and document organization methods. That is, splitting the documents based on sections, tables and so forth and using input ...
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 ...
14
votes
1answer
88 views

Should a warning be displayed when writing a question with no code?

On SO, if I include the words "best practice" in the title of a question, I get a message before I even submit the question warning me that the question appears subjective and may be closed. Could we ...
14
votes
1answer
242 views

A question was migrated to CR when the OP obviously didn't want a code review. Why?

So, I ran across this question. It would be a pretty good question except for one little detail: the OP doesn't want it reviewed. ... and am not looking for pure code improvements. Also, in the ...
13
votes
6answers
176 views

Is nitpicking worthy of a full answer?

Sometimes, others have already pointed out the obvious flaws in a review. What is left after that are details: naming conventions, style conventions, things that are not bugs that affect results, ...
13
votes
3answers
260 views

Should design questions be on-topic here?

Design questions are ones that deal with architecture, package layout, object hierarchies, etc., but do not necessarily include code. We already deal with this sort of question on a daily basis at ...
13
votes
2answers
178 views

Rehash “How secure is my X” cryptography questions

This has been discussed before about 2 years ago: “How secure…” questions - Code Review vs. Information Security SE but it doesn't appear to have led to anything very conclusive. These questions are ...
13
votes
3answers
267 views

Harmless duplicate or are we being taken advantage of?

This question caught my eye because it had accumulated close votes as being a duplicate of another question, which is very rare on CR. The target was a question I reviewed last year by the same user. ...