Skip to Main Content

APA Style (7th ed.)

Software & Computer Code

General Pattern

Author's Last Name, First Name Initial. Second Initial if given. (Year of Publication). Title of program: Subtitle, if given (Version) [Source code]. Publisher. URL, if online

In-text: (Author's Last Name, Year)

Source Code, online

Smith, J. (2011). GraphicsDrawer source code (Version 2.0) [Source code]. http://www.graphics drawer.com  

In-text: (Smith, 2011)

Computer Software, no author, no date

Comprehensive Meta-Analysis (Version 2) [Computer software]. (n.d.). Biostat.

In-text: (Comprehensive Meta-Analysis, n.d.)

For Programmers

When reusing code from an existing open source project, follow the terms of any open source license that applies to the code. Keep in mind:

  • The source code itself will contain the copyright and terms of use.
  • When downloading the source, the license is typically part of the download. If you don’t obtain the license with the download, you should be able to find it on the site of the open source project such as Apache HTTP Server site and Open Source Initiative (OSI) Site.
  • When incorporating open-source-licensed code into a program, duplicate the copyright in your code, and/or store the license in a file with the code.

To clearly identify the code copied or adapted from another project in your source code, insert the citation information above the reused code. For example:

**/
*    Title: GraphicsDrawer source code
*    Author: Smith, J
*    Date: 2011
*    Code version: 2.0
*    Availability: http://www.graphicsdrawer.com
*
**/

Additional guidance for programmers when citing source code include:

Find specific guidelines for:

Authors Dates Titles Source Page Numbers

Your professor may have different citing expectations than library staff. Always check at the beginning of term and before starting assignments that the citing rules you are using are appropriate for your class.