7
\$\begingroup\$

I have several books of programming exercises that I am working through. I would like to post some of my solutions to Code Review. Can I include problem statements along with my solutions without running afoul of Code Review rules or site policy? I posted almost the same question to the Law StackExchange, but asking whether or not this would constitute fair use:

Can I include problem statements when posting exercise solutions to Code Review? (without violating fair use)

\$\endgroup\$
14
\$\begingroup\$

You can, and you should, so that reviewers can better understand and contextualize your code.

But that doesn't always mean that you should copy & paste the problem statement verbatim.

All content (unless explicitly declared to be in the public domain) is protected by copyright law, and as long as you follow the license terms available for that copyright content then you should be able to post the problem statement here.

Anything posted on Stack Exchange sites is posted under CC By-SA 3.0 with Attribution Required. This may, or may not be compatible with the licenses available to the source's problem statement.

If there is any doubt, it is best to restate the problem in your own words, but still link to the source so that others can seek more information there, and also as attribution.

When stating things in your own words, you should still follow the advice you were given on your Law Post

  • is what was taken an insignificant amount of the entire work?
  • is reference made to the original work?
  • is your work transformative, changing the original into something new?
  • is your purpose non-commercial, that is, not one aimed at deriving directly related economic benefits?

If you can safely answer "yes" to all of the above, you're safe.

Bottom Line:

When in doubt you should describe the problem in your own words and link back to the problem as both attribution, and so others can find the source.

If your post violates the Author's/Publisher's Copyright then they may request that the content is removed by following the StackExchange copyright take-down process as legislated by the DMCA. See Stack Exchange's Legal pages.

\$\endgroup\$

You must log in to answer this question.

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