Occasionally, I have a piece of code that works but I am not comfortable with it. Is Stack Overflow an appropriate place to have people critique my code?

I know the idea is that it is a place for "questions that can be answered," but mine would be a fairly answerable question, with little leeway for personal judgment. Is it appropriate for me to post that on SO?


4 Answers 4


Of course!

Just like homework, as long as you're clear about what you want in your question, SO should be a a great place to get that kind of help. Just be careful to not post too much code as that is generally a sign that you didn't narrow your concerns down enough. In general, people don't have the time to wade through hundreds of lines of code, but snippets and high-level designs are OK!

  • 1
    +1 Detailing the question and asking for specific critique is definitely worth the effort. Jul 29, 2009 at 16:04

As Welbog notes, I have mentioned before: this is fine. Just keep it short and sweet and, most importantly, demonstrate that you've given the code some thought.

  • We can't both link to answers you've given. You're going to have to revoke that link or link to something that links to your answer instead.
    – Welbog
    Jul 29, 2009 at 16:08
  • @Welbog: Of course we can! I'm not above repwhoring. Jul 29, 2009 at 16:21

If the code is working and you just want it to be reviewed for possible improvement, perhaps a better place for posting it would be the Code Review Stack Exchange site. But personally I'm perfectly fine with finding such posts in Stack Overflow itself.


I don't think that's a problem, as long as you tag the question appropriately. If it's really subjective, it should be tagged as such and also made community wiki.

You'll notice it fast enough (by down or upvotes or comments) if it is accepted or not by the community.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .