The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [answers]

This tag is for questions about answers: how to answer, whether specific answers are appropriate, and so forth.

Filter by
Sorted by
Tagged with
7
votes
2answers
54 views

Using another answer's improvement in your own answer

Hypothetical scenario: Person A writes a review for a question. He writes a improvement X. Person B also writes a review for the question, after person A does. Person B has something to add to ...
3
votes
3answers
83 views

Is it appropriate to reveal solutions to public challenges in comments and answers?

I've seen a question that asks for a review of a piece of code that solves a public coding challenge (linked in the question). The first comment just discloses the optimal solution without actually ...
10
votes
3answers
69 views

Should you write the code for the OP?

I've seen a couple of answers have sections at the end of the post where it brings together all of the recommendations that have been mentioned in that post and re-writes the code using those ...
20
votes
5answers
379 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 ...
20
votes
3answers
176 views

A code review without the code

Recently, I wrote a review that discussed certain points in the OP's code, but did not contain any code in the review itself. Are answers like these discouraged?
12
votes
6answers
133 views

Performance checking tools

Performance checkers: What tools are available for attaining the metrics necessary to perform a performance review? Bench-marking is often not easily done by hand after all. This is a follow-up to ...
28
votes
26answers
2k views

Tools for format and error checking in your programming language

Lints and Hints: What tools are available for checking and correcting the conventions, style and common errors in my language (lint tools), and are there tools that can automatically fix them (hint ...
13
votes
2answers
148 views

Is there a place for automated code reviews?

What I'd wish for is that I wouldn't have to be a human lint tool. — Pimgd There are questions on CR where running the code through lint or a similar tool could give useful tips to the poster, ...
21
votes
4answers
253 views

Justify your review!

The same problems come up over and over again in code reviews and it can get a bit tiresome wheeling out the same basic items of advice. If it were a code review at work, you'd be quite within your ...
6
votes
1answer
89 views

To what extent should a recorded Excel macro be rewritten (removing .Select)?

I'm just feeling my way around here, having had a post recently moved over from another site together with its question. While I like the idea of a place to ask specifically for improvements to ...
21
votes
1answer
210 views

Complete code rewrite

I came across this question today: Count the ways to partition an array into two equal sets This question can be interpreted in a way, that it asks for a complete rewrite of the code, and indeed ...
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 ...
8
votes
9answers
308 views

Best of Code Review 2014 - Night and Day category

Please post your nominations for the Best of Code Review 2014 - Night and Day category. The most dramatic improvement (nominate both the question with the most hopeless code and the answer that ...
11
votes
8answers
309 views

Best of Code Review 2014 - Exterminator category

Please post your nominations for the Best of Code Review 2014 - Exterminator category. Answer that points out the most interesting obscure bug in the original code. In your nomination post, please ...
10
votes
7answers
517 views

Best of Code Review 2014 - Lots of Laughs category

Please post your nominations for the Best of Code Review 2014 - Lots of Laughs category. Answer that makes the best use of humor to illustrate a point. In your nomination post, please make sure to ...
15
votes
2answers
247 views

Can answers to questions contain only code not the same language?

This is in regards to Solving the Lazy Hobo Riddle. Is it acceptable to have answers that have code written in a different language than the OP's? The OP has since accepted an answer, but others are ...
12
votes
2answers
112 views

Should we encourage deliberately incomplete answers?

Let's say you have 5 ideas to criticize in a question. I see some advantages in including only 3 of them in your answer: Other answerers will have more things to say, making it easier to join in: ...
32
votes
4answers
1k views

How can I be a nice reviewer?

From Remove Nth Node from End of Linked List: Bug: n < 0 leads to you removing the last node. Your solution should have comments: I have NO idea how it ...
12
votes
3answers
158 views

Duplicated answers for duplicate patterns/subroutines

Question 1 - Answer 1 Question 2 - Answer 2 Question 3 - Answer 3 More duplicates of this pattern from the same user: Iterator for binary tree - pre, in, and post order iterators Isomorphic trees ...
12
votes
3answers
140 views

Is the SE voting system insufficient for CR answers?

The question that prompted this is Add or view pattern with MVVM (but I think this situation is pretty common). There, you have two answers: one is long, thorough and overall great; the other is much ...
11
votes
2answers
211 views

Are encrypted answers acceptable?

In these sorts of problems you can't take the simple approach, you've got to come up with a clever way to avoid actually simulating the eating of the candy bars. Some hints (in rot13), for ...
9
votes
2answers
70 views

Should we spend a little more effort telling people what they've done right?

Code Reviews tend to be a bit of a negative thing. We spend a lot of time pointing out problems in other people's code (and rightfully so). However, a good code review also points out what was done ...
13
votes
2answers
73 views

Reviewing reviews

If I find a review that seems to have a lot wrong with it, as in, I want to go through the review line by line and review it as if it had been a question, what action should I take? A downvote is a ...
4
votes
2answers
56 views

Is it ok to review only a part of the code [duplicate]

Recently, I went through a question where there was quite alot of code and I didn't have time to read it all carefuly (I still went through the code!). I still posted an answer that reviews the code ...
8
votes
1answer
80 views

Questions containing false statements: Edit or Answer?

https://codereview.stackexchange.com/review/suggested-edits/24111 The asker posts a false statement: "This code runs in time complexity X." Should they be corrected in an answer or in an edit? ... or ...
16
votes
2answers
179 views

Check list for formatting questions and answers

I have seen that moderators work hard to format questions and answers. Is there a check list they use (specially for CR), so others can also contribute by editing or properly formatting their own ...
6
votes
1answer
149 views

Is solely suggesting another solution a bad answer?

Related to Is a bad approach for a problem a good reason to close a question?, this question is about the opposite instead: Is solely suggesting another solution a bad answer? We've been over this ...
38
votes
2answers
1k views

Jack of All Trades, Master of None - Let's work together to offer ultimately better content, faster

Nhgrif pointed out a great idea: Teamwork "I think it's probably best if the question instead has several good answers that each address a specific topic. The result will be that no single ...
6
votes
2answers
105 views

Should timings be included in answers where appropriate?

For many of the questions I've looked at, I see people saying that the algorithms or parts of the implementation will be 'slow', but no one seems to follow this up with performance figures for a '...
12
votes
1answer
106 views

Self-answers that re-write code with little/no explanation

I came across this self-answer today: https://codereview.stackexchange.com/a/10844/46800 It had no explanation or evaluation of the code in question, just a code rewrite. This seems to me to not ...
11
votes
4answers
2k views

Code Hunt : Perfect score means not-so-perfect coding

With a recent question I went to Code Hunt and played there a little bit. At one moment I get this result as question : ...
19
votes
1answer
363 views

Checklist or general directions on how to write a good CR-ish answer

This question is intended to be the counterpart of Checklist for how to write a good Code Review question. Getting started with Code Review: New users often seem to have problems to understand, what ...
12
votes
1answer
161 views

What makes for a good answer?

I found myself looking for some place to point a new user on why his answer wasn't a good answer. I couldn't find anything except the fairly unhelpful Help page's "How do I write a good answer". So, ...
7
votes
1answer
47 views

Do new CR users who are trusted elsewhere on SE go through the First Post Queue?

This question is in regards to users who have 100 rep points. When we come here from another SE site, we are awarded 100 rep points to get us started. What I'm wondering is, do those users go ...
13
votes
3answers
116 views

What do you do when an answer is upvoted but is broken?

This answer: File Async writer using Tasks or new features of .Net 4.5? The code in the answer doesn't log until program termination -> lost items in the log. You cannot execute parallel code ...
12
votes
1answer
89 views

Tips for writing better answers

I was writing an answer to a question the other day and after I had finished it I wished I had some feedback as to what could make the answer better. How could I write it better. What headings could ...
15
votes
5answers
202 views

What are the correct actions to take when there is a 'bad' answer?

When there is an answer you feel is 'bad', what are the correct actions to take? For example, the question: Similar methods using loops has an answer: If you always use both functions together ...
2
votes
1answer
57 views

Request to add answer structure close to the answering field

Coming from this post, I'd like to address this as a feature request. What is it about? Lowering the threshold that people might experience when wanting to answer new questions. I have the feeling, ...
5
votes
1answer
46 views

Multiple proposed answers to a single question [duplicate]

If a question is asked, whereby you have a number of suggested answers, is it preferred that you post multiple actual answers, or large answer with separated section headers? Version 1 Solution some ...
6
votes
2answers
150 views

Must answers include a code review?

I'm surprised to ask this but, "Must answers include a Code Review?" I'm looking at this answer. The request in the OP says, Can you please look into my code and suggest me some performance ...
12
votes
3answers
245 views

So votes are good for us. How can I find answers/reviews to vote for?

In fall 2013, we went on a mission, and bumped the site's answered% from 88% to 93%. As new questions flow in, the answered% has been remaining steady at 93% for several weeks, we're doing good (...
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 ...
16
votes
2answers
342 views

How much can an answer be subject to opinion?

I am new to this site, but love reviewing code and having my code reviewed. One thing that is always difficult for me when I'm reviewing code is to determine whether some of the points I'm making ...
3
votes
4answers
170 views

Best of Code Review 2013 — Thousand Words category

Please post your nominations for Best of Code Review 2013 — Thousand Words category: Most effective use of images in a question or answer. In your nomination post, be sure to include a link to the ...
3
votes
3answers
116 views

Best of Code Review 2013 — Gordian Knot Untied category

Please post your nominations for Best of Code Review 2013 — Gordian Knot Untied category: Most justified advice in an answer for taking a completely different approach from the code in the original ...
5
votes
3answers
164 views

Best of Code Review 2013 — Diplomat category

Please post your nominations for Best of Code Review 2013 — Diplomat category: Tough advice in an answer, delivered in the most tactful manner. In your nomination post, be sure to include a link to ...
2
votes
5answers
202 views

Best of Code Review 2013 — Night and Day category

Please post your nominations for Best of Code Review 2013 — Night and Day category: The most dramatic improvement. In your nomination post, be sure to include a link to the answer, as well as a short ...
3
votes
4answers
151 views

Best of Code Review 2013 — Exterminator category

Please post your nominations for Best of Code Review 2013 — Exterminator category: Answer that points out the most interesting obscure bug in the original code. In your nomination post, be sure to ...
10
votes
5answers
167 views

Should we merge multiple answers from the same person? [duplicate]

Today, I ran across this question which had already been answered by Malachi 3 times before I looked at it. I decided that since he answered in multiple answers, I might as well do the same thing. I ...
12
votes
2answers
316 views

Answering Guidelines (answer length)

From Grace Note's CR review (emphasis mine): Time to Answer Jon Ericson, another Community Manager, ran some numbers on the site and discovered that the average time it takes for a question to ...