Stack Exchange Network

Stack Exchange network consists of 175 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 [asking-questions]

This tag is for questions specifically about the process of asking questions on Code Review; e.g. how to ask, whether specific questions are appropriate, etc.

71
votes
4answers
6k views

How to get the best value out of Code Review - Asking Questions

I have a project I am working on, and I would like some, or all of it reviewed, how can I ask for this review on Code Review in a way that produces the best possible value? This is not about a ...
51
votes
5answers
3k views

Checklist for how to write a good Code Review question

Many questions of new users lack some parts or common style of the site. There already are some meta questions that aggregate tips on this issue but letting new users walk through all of them is ...
43
votes
12answers
787 views

What would Clippy say?

We have a question closure rate of ~30%. That's a significant burden on moderators and users who help triage the questions. While some questions can indeed be very difficult to triage, there are ...
39
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 - ...
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? ...
32
votes
2answers
474 views

How well is “malicious” code accepted here?

I recently asked a question that could possibly be used for malicious purposes. I tried to whittle the code down as much as I could to a "base" program so that a script kiddie wouldn't stumble across ...
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
4answers
363 views

Code Review Clippy

A while back, y'all asked for some warnings for folks asking questions here: What would Clippy say? After thorough review (mostly by animuson & JNat), we've determined that the following warnings ...
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 ...
27
votes
1answer
453 views

What makes a good question? [duplicate]

I think it would be a good idea to compile a list of guidelines on how to ask good question. What information should be present, how to structure it, etc.
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: ...
25
votes
4answers
193 views

Can we rename “Ask question”?

A recent "question" (will probably be deleted when you click it) made me realize: The "Ask Question" label on Code Review can be a bit misleading here. Code Review questions are expected to contain ...
24
votes
4answers
573 views

Must the code be “clean”?

I have working code that I want reviewed, but it is not clean. It made the correct output but there are comments and bad names. Is it not ready for review, and must the code be clean to get reviewed ...
24
votes
2answers
176 views

Can I use CR as an environment to foster an open source project?

Let's suppose that I have a personal project which I think might interest more people, and given my low position in the learning curve, want to make it open source. Besides posting pieces of code in ...
21
votes
9answers
254 views

Help spot deficiencies in our Help Center

Regular participants will be familiar with procedures and practices on Code Review. For example, we have rules against asking hypothetical questions appending to or modifying the question after ...
20
votes
3answers
355 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
5answers
381 views

Is it too easy to post your code for review?

Our current situation: We are getting 34 questions per day We are getting more and more unanswered questions We are still on a mission I feel that we multiple times per day get questions that are a ...
20
votes
3answers
241 views

Found a serious bug in my question after posting it

What is the correct way to go after I found a bug in a question that I posted? Shall I delete the question, vote to close it or flag it as off-topic?
20
votes
1answer
167 views

Should I include my testing code?

I recently posted a large chunk of code. It feels like a tall order to code review. I've written a bunch of tests to test my code. Would those tests be useful to the reviewer? I'm not looking for ...
19
votes
5answers
378 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 ...
19
votes
4answers
355 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
286 views

How much research effort is expected when posting a Code Review question?

On Stack Overflow, the community consensus for research before asking is: A lot. An absurd amount. More than you think you are capable of. In fact, asking a question on Stack Overflow is the ...
19
votes
3answers
198 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 ...
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
251 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
1answer
127 views

Does preventing exact duplicate titles makes sense here?

When editing the title of Multiple FizzBuzz from a file, I first wanted to make the title "FizzBuzz from a file" but that exact title already exists which showed an error message: Considering our ...
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
2answers
123 views

May I ask a question about legacy code, where I don't intend to implement advice given by CR?

One of the checklist items for an on-topic question is: Do I want feedback about any or all facets of the code? I have considered posting old code to CR which I think would spur useful discussion ...
17
votes
2answers
472 views

Should [programming-challenge] questions require a summary of the challenge?

Project Euler has been offline for several days, after the site was hacked. Problem is, a large number of our questions relate to Project Euler, and many of them do not contain any description of the ...
17
votes
1answer
294 views

Is this question popularity normal?

I was on Code Review, asking a question for the first time. I thought my question was good, but it never crossed my mind that it would become popular enough to make it to the hot list. It did, and I ...
17
votes
4answers
137 views

Can we require questions to have at least one language tag?

We are getting a low amount of questions every day which are not tagged with a language. I believe we can could prevent this if we make adding a language required. Is there a possibility to add this ...
16
votes
2answers
152 views

Should I leave in documentation in code for review?

I'm surprised I can't find this as a question already, so I'm taking a shot and posting... I document my code. I don't not document my code before considering myself done for the day. Most of the ...
16
votes
4answers
366 views

Should I be asking shorter questions?

Background I've been meaning to ask this for a while, and this meta question prompted me to finally write something. I've read the answers to that question and the ones to which it links, and the ...
16
votes
3answers
125 views

Posting a multi-language project

I have a small project for which I would like to ask for a code review soon. However, it integrates multiple languages (specifically, Python + jQuery and the rest of the browser stack). Can such a ...
16
votes
3answers
167 views

Will a question be downvoted for poor code?

I am kind of new to Code Review SE (I only have two questions), and am trying to understand the site. I recently came across this question with three downvotes. For the most part, It seems that it is ...
16
votes
2answers
256 views

Stop mentioning major concerns in title

On the Ask a Question page, users are currently faced with this: state the purpose of your code, and mention any major concerns. I have recently started commenting on many questions with this ...
16
votes
4answers
331 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
1answer
146 views

Tagging: C++ vs C

I've noticed more and more questions recently having their posts tagged with C++ both c++ and c. A couple examples that I have recently handled myself: Karatsuba C++ implementation Passing objects ...
15
votes
2answers
219 views

Are we allowed to ask questions about just regular expressions?

Are we allowed to ask questions just about regular expressions?
15
votes
1answer
155 views

If in doubt, post the question on Meta first?

Not for lack of trying, I get downvotes on some questions. And on those questions I nevertheless often get answers. So if I try to delete the question to approach it differently, I get the warning ...
15
votes
2answers
112 views

Insufficient “How to ask”

As a newbie coming to CR and asking the very first question you can see There's nothing about broken code there and many new questions seem to get closed quickly because of it. Moreover, it names no ...
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
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
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
104 views

Is it okay to post the same Project Euler solution, using the same language, but with a different implementation?

I have come up with my very own Clojure implementation of the solution for Project Euler #2, but I see that someone already solved this particular problem using Clojure and put it up here for code ...
14
votes
1answer
231 views

How should one deal with code asking “Is this correct?” when it is in fact correct?

I'm wondering what a good guideline is when dealing with questions asking (primarily or completely) about correctness. Generally this is not what Code Review is about. However, when the code is ...
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 ...
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
2answers
133 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
212 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, ...