For this question:


one of the answers noted that the code in the question appears to be copy/pasted from this homework assignment.

Should the question therefore be closed as off-topic?

Clarification: The code does not appear to be written by the question asker. The homework was basically: "How can you make this code better in these three places" and the OP pasted that code as his question and asked about those three places.

Edit: I found a couple of other links to the code. One is from coursehero.com and one is from highered.mheducation.com.

| |
  • \$\begingroup\$ I don't see anything that indicates it wasn't the OP's. What makes you think this? \$\endgroup\$ – RubberDuck Jul 1 '15 at 18:41
  • 1
    \$\begingroup\$ @RubberDuck Did you read the pastebin link? \$\endgroup\$ – JS1 Jul 1 '15 at 18:42
  • 7
    \$\begingroup\$ Got it. Yes. Off topic. We're not here to do anyone's homework for them. The technical reason would be it's not OP's code. \$\endgroup\$ – RubberDuck Jul 1 '15 at 18:44
  • \$\begingroup\$ Glad to see this got resolved, and now I know that these are considered off topic \$\endgroup\$ – Patrick Murphy Jul 1 '15 at 19:23
  • \$\begingroup\$ Funny how the code is now the inelegant standard. I wouldn't be surprised if this becomes a yearly/semester-ly occurrence or something... \$\endgroup\$ – h.j.k. Jul 2 '15 at 1:36

questions are not off topic in and of themselves. However, when reviewing homework assignments, there are certain guidelines to be followed - mainly, not giving the solution directly.

Given the clarification, questions with code not written or maintained by the asker are off topic, and I don't think homework questions with given code to work from counts as maintaining the code.

| |

This appears to be a copy paste of someone else's material and is off-topic by means of "not your code"

| |

You must log in to answer this question.

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