APA Referencing Guide — Computer code
Note
- If you are writing code for your assignments you must cite and reference anything you have copied or adapted from elsewhere, even if it is open source.
- Also include a note in the code, to indicate where any extracts/ examples/ application programming interfaces (APIs) etc. are being used, and where the original came from. That way, if the code is separated from the report, you have still clearly identified anything that is not your own original work, e.g.
/**
* A utility class that gives applets the ability to detect proxy host settings.
*This was adapted from a post from Chris Forster on 20030227 to a Sun Java
*forum here:
*http://forum.java.sun.com/thread.jspa?threadID=364342&tstart=120
[…]
*
- The format of your reference will be based on where you took the code from. For example, if using code you found on a website such as GitHub, use the web page referencing guide. If taken from a book or ebook, use the books referencing guide.
In-text citation |
---|
Code taken from a book:
(code adapted from Torjo, 2013, pp. 86-87). Code taken from GitHub:(code based on Toshinori, 2015) | Reference list |
Torjo, J. (2013). C++ network programming. Packt. Toshinori, S. (2015). Neologism dictionary based on the language resources on the web for MeCab. GitHub. https://github.com/neologd/mecab-ipadic-neologd |
Reference Builder
Your reference will appear here.