CS106B and the Honor Code


Written by Eric Roberts

Since 1921, academic conduct for students at Stanford has been governed by the Honor Code, which reads as follows:

THE STANFORD UNIVERSITY HONOR CODE, 2023

The Honor Code is an undertaking of the Stanford academic community, individually and collectively. Its purpose is to uphold a culture of academic honesty.

Students will support this culture of academic honesty by neither giving nor accepting unpermitted academic aid in any work that serves as a component of grading or evaluation, including assignments, examinations, and research.

Instructors will support this culture of academic honesty by providing clear guidance, both in their course syllabi and in response to student questions, on what constitutes permitted and unpermitted aid. Instructors will also not take unusual or unreasonable precautions to prevent academic dishonesty.

Students and instructors will also cultivate an environment conducive to academic integrity. While instructors alone set academic requirements, the Honor Code is a community undertaking that requires students and instructors to work together to ensure conditions that support academic integrity

The purpose of this handout is to make our expectations as clear as possible regarding the Honor Code. The basic principle under which we operate is that you are expected to submit your own work in this course. Claiming independent authorship for work that was derived in whole or in part from the work of others constitutes plagiarism, which is a serious violation of basic academic standards.

Under the Honor Code you are obligated to follow all of the following rules in this course:

Rule 1: You must not look at assignment solutions that are not your own.

It is an act of plagiarism to take work that is copied or derived from the work of others and submit it as your own. For example, using a solution from the Internet, a solution from another student (past or present), a solution taken from an answer set released in past quarters, or some other source, in part or in whole, that is not your own work is a violation of the Honor Code. Many Honor Code infractions we see make use of past solution sets. The best way to steer clear of this possibility is simply to not search for solutions to the assignments. Moreover, looking at someone else’s solution in order to determine how to solve the problem yourself is also an infraction of the Honor Code. In essence, you should not be looking at someone else’s answers in order to solve the problems in this class. This is not an appropriate way to “check your work,” “get a hint,” or “see alternative approaches.”

Additionally, you must not solicit solutions from anyone, animate or inanimate. For example, it is a violation of the Stanford Honor Code to ask another student to share their answers with you, to ask a tutor to provide other students’ solutions to you, to request solutions on sites like Stack Overflow or Chegg, or to prompt an AI tool to generate solution code.

Rule 2: You must not share your solutions with other students.

In particular, you should not ask anyone to give you a copy of their answers or, conversely, give your answers to another student. Similarly, you should not discuss your solution strategies to such an extent that you and your collaborators end up turning in the same answers. Moreover, you are expected to take reasonable measures to maintain the privacy of your solutions. For example, you should not leave copies of your work on public computers nor post your solutions on a public website.

Rule 3: You must properly cite any assistance you received.

If you received aid from a person/resource external to the course staff or course materials, you must cite from whom you received help and what specific help you received. A proper citation should specifically identify the source (e.g., person’s name, book title, website URL, etc.) and a clear indication of how this assistance influenced your work. For example, you might write “Student X mentioned the idea of having the base case be Y and the recursive step work in way Z.” If you make use of such assistance without giving proper credit – or, if you provide a misleading or inaccurate statement describing the help you received – you may be guilty of plagiarism.

It is also important to make sure that the assistance you receive consists of general advice that does not cross the boundary into having someone else write the actual solutions or show you their solutions. It is fine to discuss ideas and strategies, but you should be careful to write your solutions on your own, as indicated in Rules 1 and 2.

If you are working with a tutor, be sure they/you are following the rules for the Honor Code as it applies to tutors and use of tutoring tools.

Rule 4: You may only reuse past work in certain, limited situations.

We tend to reuse assignments from quarter to quarter. Following the general principle that the names affixed to a submission should accurately represent its authorship, you may only resubmit work from prior quarters provided that the exact same set of people who initially turned in the assignment resubmit. This means, in particular, that

  • if you completed an assignment individually in a previous quarter, you may only resubmit that assignment if you do so individually; and
  • if you completed an assignment with a partner in a previous quarter, you may only resubmit that assignment if you submit with that exact same partner.

To elaborate on that last point, if you worked with a partner in a previous quarter, you are retaking the course or resolving an incomplete, and your partner is not also retaking the class or resolving an incomplete, you may not resubmit the past work you did on that assignment in any circumstance.

The policies above apply equally to reading, copying, or adapting solutions you submitted in previous quarters. For example, if you submitted an assignment individually in a previous quarter, you should not refer to your submission on that assignment if you are planning on redoing the assignment in a pair. Similarly, if in a previous quarter you worked with a partner who is not retaking the class, you must not reread or copy anything from that previous submission in the course of redoing the assignment.

Rule 5: Use of generative AI tools is disallowed on graded work

While artificial intelligence (AI) tools can be valuable in certain contexts, in this course it is important that students develop their own skills to create, modify, and debug code without the use of this technology. To maximally gain from the intentionally designed learning experiences in the course, it will be crucial that that students rely on personal efforts rather than use of AI tools. In fact, in many cases, it will be the effort itself (not the product) that is most valuable! For this class, all code submitted for a grade must be independently written by you. Just as you cannot take credit for using code written by others, you are disallowed from using generative AI tools (like ChatGPT) to create, modify, or debug code which you then submit as your own work. Doing so in this course is a violation of the Stanford Honor Code.

Note: all submissions are subject to automated plagiarism detection.

The Stanford CS department employs powerful automated plagiarism detection tools that compare assignment submissions with other submissions from current and previous quarters, including intermediate versions. The tools also compare submissions against a wide variety of online solutions and code produced by generative AI. These detection tools are effective at identifying unusual resemblances in programs, which are then further examined by the course staff. The staff then make the determination as to whether submissions are deemed to be potential infractions of the Honor Code and referred to Stanford's Community Standards office.