1
\$\begingroup\$

Do I need to post dependency codes which are in the actual code I need to be reviewed?

\$\endgroup\$
  • 2
    \$\begingroup\$ It is a bit unclear what you mean exactly by "dependency codes" but I have tried in giving an answer. \$\endgroup\$ – Simon Forsberg Dec 23 '15 at 11:43
6
\$\begingroup\$

No, you do not need to include all the dependencies of your code when posting it for review. But doing so can be helpful.

We only require that the code should be working for you, there is no requirement that everybody should be able to copy-paste your code and get it running.

If you do not include all the code dependencies in your question, it is good if you either link to a Github repository that does include everything to make it fully runnable, or if you explain a bit what the omitted code does.

\$\endgroup\$
  • 2
    \$\begingroup\$ The dependencies should be listed somewhere though, otherwise we have no idea whether certain constructs make sense in your application or not. \$\endgroup\$ – Mast Dec 23 '15 at 11:51
  • 1
    \$\begingroup\$ While not a requirement, it is nice to be able to copy/paste some code into the editor and run it. Not always possible, but it does make for a more pleasurable review IMO. \$\endgroup\$ – RubberDuck Dec 25 '15 at 21:39

You must log in to answer this question.

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