Thread: Code in MLA style papers

  1. #1
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

    Code in MLA style papers

    Anyone know what is the "proper" way to insert computer code into a MLA style paper? Haven't had a chance to talk to my instructor about it so I'm flying blind.

    I'm thinking about doing it like this:
    1) Change the font to fix width font (Courier New)
    2) Indenting every line kinda like you would if quoting a paragraph.
    3) Keeping the double spacing

    Any ideas?

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I've never done it either, but what you suggested sounds good, except maybe make it single spacing...It seems like it might be too spread out with double space, but I don't know
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You should treat it like any other quote:

    1) Indented
    2) Single-spaced

    Or better yet, put it in an appendix.

    (At least that's how I've been trained to do it... although I'm not sure what the latest MLA style book says)

  4. #4
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    What Ober said, and certainly the fixed-wdth font. It would be too hard to read without it.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    I would definately put in in the appendix and maybe quote a few lines in your text if you really need to...

    I just found this... dont' know if it will help you any, but:
    What is Plagiarism?

    According to the PCC Student Handbook, plagiarism is "the deliberate adoption or reproduction of ideas or words or statements of another person as one’s own without acknowledgement"(8). From the Latin word plagiarius (plunderer), plagiarism is an act of intellectual theft and intellectual fraud ("Plagiarism" 888). The one who plagiarizes is stealing the work of another and then trying to deceive another into believing that work belongs to him/her.

    "Work" as listed above includes "original ideas, strategies, and research"(Spatt 438), art, graphics, computer programs, music and other creative expressions. The work may consist of writing, charts, pictures, graphs, diagrams, data, websites or other communication or recording media, and may include "sentences, phrases, and innovative terminology" (438), formatting or other representations.

    To acknowledge another’s work, one must cite the source. The term "source" includes published works (books, magazines, newspapers, websites, plays, movies, photos, paintings and textbooks) and unpublished works (class lectures or notes, handouts, speeches, interviews, other students’ papers or material from a research service).

    Using words, ideas, computer code or any work by someone else without giving proper credit is plagiarism. Every time you use information from a source, you must cite it.
    taken from: http://www.pueblocc.edu/advise/judplag.htm
    and here's how to quote things MLA style: http://www.uky.edu/~jcscot00/101/mlaquoterules.htm
    ooh... and looky here... an example quote from a C++ book: http://www.aresearchguide.com/5quoting.html
    Last edited by major_small; 12-09-2003 at 08:31 PM.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    The thing is that I want to use it directly in the paper. IE:

    This is an example of blah blah

    <code>


    Except worded better of course. Putting it in an appendix would make it much more difficult to write the paper as the reader would have to be going back and forth too much. As for the citing the source the code will be my own or code that is considered public knowledge (ie the hello world program).

    I think I'll just do it the way I feel is best and then get more directions from the instructor tomorrow during the peer review time (since as far as my grade is concerned what she thinks is best is the only one that matters)

  7. #7
    Board Conservative UnregdRegd's Avatar
    Join Date
    Jul 2003
    Posts
    154
    In the most recent editions of the MLA Handbook, from what teachers have said, everything is double spaced now, including long quotes. I doubt the MLA Handbook specifically covers computer source code so I recommend treating it like a long quote, with the exception that a fixed-width font should be used.
    I am a programmer. My first duty is to God, then to nation, then to employer, then to family, then to friends, then to computer, and finally to myself. I code with dignity, honor, and integrity.

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    If I remember correctly aren't long quotes indented on both margins? If so think I should do the same?

    Edit: Well draft is done. Here is what I did:
    For the two short program examples I inserted them stright into the paper, indented, and changed the font to fixed width. Left spacing the same.
    For the two longer examples I put them in an appendix. To achieve a column effect I put them in a 1X2 table each in its own cell. They are in fixed width font, not indented, and single spaced. Well I'll just have to find out tomorrow what the instructor thinks. I'll let you all know when I get back.
    Last edited by Thantos; 12-10-2003 at 12:28 AM.

  9. #9
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    I will be taking a class on CS presentations next semester, but as far as I know right now from looking over some of my friend's papers both quotations and appendecies are allowed; the only difference is that code should be written not in TimesNewRoman but courier(sp?) new.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Also using quotes w/o placing quotations around the statements is also plagiarism. I cited every source in my biblio in one of my papers, but the prof deemed that I quoted directly from the book - so because I forgot those stupid quotes she tried to tell me I was plagiarizing. Totally unintentional on my part but she gave me a zero on the paper so my grade went from A in the class to D.

    Sucks to because I had over 150 notecards worth of research on the dumb paper.

    So...don't forget the quotes. Most profs prob would not be this hard but just in case.

  11. #11
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    It depends Bubba, if you are taking the quote word for world the " " are required, but if you are summarizing what they said (but still using their idea) then you don't use quote but just put the annotation at the end of the sentence.

  12. #12
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    >>So...don't forget the quotes. Most profs prob would not be this hard but just in case.

    you're right... some would send you straight to jail... the truth is they have no choice... not accepting the paper is their only option besides pressing charges... if they knowingly do anything else (low grade, etc) would put them in danger of losing their job...

    since you cited them without quotes, there is no way the professor can say they didn't know...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  13. #13
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    These style requirements are a pet peeve of mine. To reject a paper because it doesn't conform to some arbitrary standard is the mark of an anal mind. Did Freud use the APA standard? Did Einstein use the MLA standard? A paper should be judged on it's content and how well the information is presented, with a few style requirements like citing sources and quotes. The rest is BS.
    Truth is a malleable commodity - Dick Cheney

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  4. Source code style
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 06-26-2002, 02:22 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM