Linked Questions
25 questions linked to/from Why is hypothetical example code off-topic for Code Review?
2
votes
1
answer
45
views
Why is code that is not explicitly part of a working project not appropriate? [duplicate]
I recently saw this question, which is a perfectly reasonably question about how to make code more efficient, but it was put on hold for being off topic. I see this all the time - someone wants to ...
219
votes
1
answer
13k
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....
43
votes
5
answers
7k
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 ...
21
votes
5
answers
417
views
Can we ask reviewers to *not* focus on something?
Our Help Center says:
Do I want feedback about any or all facets of the code?
However, sometimes we might have some code that we are aware has flaws in it, or we would just for one reason or ...
-4
votes
3
answers
130
views
Isn't this whole site opinion based?
I was looking at some questions and also the guidelines of StackExchange clearly state that it's impossible to avoid opinion in something which is done by human being. According to SE, but also to ...
11
votes
1
answer
391
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 ...
-7
votes
3
answers
263
views
Please reconsider the rule: Pseudocode, hypothetical code, or stub code should be replaced by a concrete example?
Related:
Why is hypothetical example code off-topic for Code Review?
Is pseudo-code alright when asking about performance?
The gray areas of Code Review: Hypothetical / Example code
My concrete ...
6
votes
4
answers
90
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, ...
15
votes
3
answers
295
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?
...
9
votes
3
answers
107
views
Clarification on how to use generic code snippets?
I recently posted a question in which I purposely only included a specific code snippet: Purposely raising exceptions to use catch
In my original (unedited) question, it had a simple example of ...
8
votes
2
answers
121
views
Revising list of closure reasons
Following up on a past discussions, I'd like to tweak our list of off-topic close reasons. We may have up to three canned reasons. Currently, they are:
Questions asking for code to be written ...
8
votes
1
answer
164
views
What about this SO question renders it unsuitable for migration to CR?
I flagged this SO question for migration to Code Review. It's 100% C++ and, despite the fact that the OP initially left out a constructor definition that rendered the program buggy, that definition ...
4
votes
2
answers
81
views
Is this question closed inappropriately: "Operating on files from source directory"
I have been asked to evaluate the close reasons for this question here:
Operating on files from source directory
Has been closed "off-topic - example code".
Is the question actually on-topic?
If ...
14
votes
1
answer
115
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),...
7
votes
1
answer
68
views
Design for a question about thread abortion and related process
I posted a question for Code Review, and other than a few comments, what I was told was that I should put actual code of the process and people were only interested in knowing that. What I really ...
2
votes
1
answer
67
views
Confusion over posting an acceptable question
My question was closed with a very vague reason. I'm a member on multiple Stack Exchange sites and haven't had issues before with creating a question.
If my question is off-topic I would say the ...
1
vote
4
answers
98
views
Is undefined behavior (for C/C++ code) off-topic here?
This site states that correctness in unanticipated situations is explicitly on-topic here.
If you have a working piece of code from your project and are looking for open-ended feedback in the ...
2
votes
5
answers
51
views
What causes a question to get closed as example code?
https://codereview.stackexchange.com/questions/78110/multiple-if-else-how-to-reduce-cyclomatic-complexity-of-code
Here's an example of something that was tagged as example code. I'm wondering what ...
0
votes
2
answers
99
views
Knowledge-based authentication using Domain-driven Design belongs to Software Engineering
I find the question Knowledge-based authentication using Domain-driven Design in C# should be moved to Software Engineering because the only code that OP has posted is clearly hypothetical, OP even ...
4
votes
1
answer
69
views
Info request: "Wait! Some of your past questions have not been well-received"
I have 7 questions with several positive up-votes and 2 deleted by myself. Today I received this message when trying to ask a question:
Wait! Some of your past questions have not been well-received,...
3
votes
1
answer
68
views
Understanding closed question concerns
I'm still in the process of figuring out many aspects of stackexchange, and a recent question of mine got closed after I responded to comments provided. I'm hoping to understand more about the ...
4
votes
1
answer
67
views
Why did a question about unit-testing get migrated?
I'm curious as to why this question got migrated to Stack Overflow, mostly so I can ask in the correct place in the future. It's about unit testing a functioning python module, the unit tests all ...
3
votes
3
answers
86
views
Do we have a blurry scope?
When building the base of 'the guide to wonderland', I've looked through the scope and site-policy tags. But I don't really know what the difference is, and I'm unsure why a significant amount of them ...
1
vote
1
answer
65
views
What is the relationship between "example code" and "example project?"
A handful of people seem to have formed the opinion that an example project is exempt from this topicality constraint:
Is it actual code from a project rather than pseudo-code or example code?
The ...
1
vote
0
answers
68
views
Merge example code, stub code and insufficient context reasoning into one?
When expanding the guide to wonderland, I'm trying to explain what example code, stub code and context are.
When trying to explain why example code is off-topic all I can think of is something like:
...