2
\$\begingroup\$

Is it recommended to compile/run/check every answer (or the shortest for code-golf challenges) before accepting an answer?

Has people even posted code which looks good but doesn't work?

\$\endgroup\$
2
  • 3
    \$\begingroup\$ In general, if you see a large number of upvotes, it probably works. However, to be certain, you have to check it yourself. Don't forget about ideone.com . \$\endgroup\$ – Justin May 7 '14 at 2:48
  • \$\begingroup\$ I don't think there is a "best practice" on the matter. I tend to run the highly voted answer just to see them do their thing. \$\endgroup\$ – dmckee --- ex-moderator kitten May 7 '14 at 2:51
2
\$\begingroup\$

Has people even posted code which looks good but doesn't work?

Yes. In Weirdest way to produce a stack overflow, this answer (now deleted) has provided an answer that nobody can reproduce.

Here's a screenshot for those without enough rep to view deleted answers:

screenshot

\$\endgroup\$

You must log in to answer this question.

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