APA 7th Referencing Guide — Computer Code

University of Huddersfield

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
[…]
*

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.


Computer code







Need Help?

If you're having problems creating a reference, find out how you can get help.


web page URL: /pages/referencing-software/
last updated: Fri 26/Apr/2024