Digital humanities

Maintained by: David J. Birnbaum ( [Creative Commons BY-NC-SA 3.0 Unported License] Last modified: 2021-04-23T16:26:11+0000

Writing your own code

All work that you submit in this course must be your own. Submitting someone else’s code (including code that you find on the Internet and then modify) in a way that misrepresents it as entirely your own work is cheating. At the same time, one of the best ways to learn to write idiomatic code is by looking up and learning from explanations and examples. Below are some guidelines for learning from other people’s code while also ensuring that the work you submit is your own:

Finding code that meets your needs (or that can be adapted to meet your needs), figuring out how it works (including asking for help, where needed), and giving credit to your source is learning. Including features that do not make sense in your context, or features that you do not understand, very plainly crosses the line between learning and cheating, since it epitomizes copying without learning. Do not be reluctant to Look Stuff Up and to use what you find; this is what professional developers do all the time. The point is to use what you find ethically: attribute work that is not your own to the original sources and use what you look up to learn to be a better coder, and not to avoid learning.