I'm making my degree thesis on applied maths. An important part of the work is the implementation of some algorithms and simulations so code is part of the work. And I mean a lot of code.

I don't have references of works like mine so I'm not sure what to do with the code. Of course, it's not going to be "printed" as part of the thesis. It's supposed to be documented on internet with the link in an appendix I guess, but I don't really know how to deal with it.

I didn't find and answer in other posts.

closed as off-topic by Nate Eldredge, JeffE, RoboKaren, Bob Brown, user3209815 Jan 5 '17 at 7:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "The answer to this question strongly depends on individual factors such as a certain person’s preferences, a given institution’s regulations, the exact contents of your work or your personal values. Thus only someone familiar can answer this question and it cannot be generalised to apply to others. (See this discussion for more info.)" – Nate Eldredge, JeffE, RoboKaren, Bob Brown, user3209815
If this question can be reworded to fit the rules in the help center, please edit the question.

  • For questions like this, you usually have to look at your university's thesis requirements, and consult with your advisor to see what they want. It's not the kind of question that random people on the Internet can really answer. – Nate Eldredge Jan 4 '17 at 19:49
  • 4
    Ask your advisor. But if i were your advisor, I would say: Github offers free public repositories. Put your source code at github.com/VR1312/[whatever] and include the sentence "Source code is available at github.com/VR1312/[whatever] ." in your thesis. Done. – JeffE Jan 4 '17 at 20:42
  • 1
    @NateEldredge I disagree: not all the universities have so detailed thesis requirements (or thesis/dissertation offices), and there might be advisors who don't have clear ideas on formatting. I think that we certainly have the experience to give useful advice, and that formatting questions are on topic: the code tag explicitly refers to formatting too. – Massimo Ortolano Jan 4 '17 at 21:03
  • As I said above, I fail to see how this question can be considered off-topic, and voted to reopen. – Massimo Ortolano Jan 5 '17 at 19:47
  • Thanks, I will ask my advisor. Really, as @MassimoOrtolano said, my university doesn't have a clear format to do this. And it may sound strange but here, in my area, it's a unusual situation. Thanks! – VR_1312 Jan 6 '17 at 20:44

As Nate Eldredge has already mentioned, you should check your university's thesis guide if there is anything specific about code. If not, contact your thesis/dissertation office to see if they can help out.

I'll now speak from my own experience working at my university. I suggest to students that code be placed in the appendix material. Why? So it doesn't clutter the body.

If you're writing in LaTeX, be sure to read the documentation of any package you use to import your code. If you wish to leave it as a link, be sure to follow your university's instructions on that.

  • It sounds like OP's code is too extensive to do this. – aparente001 Jan 5 '17 at 4:54
  • Yes, it's pretty extensive. The most logical solution seems to be documenting on internet (probably I'll ask my advisor about using GitHub for that), and then link. – VR_1312 Jan 6 '17 at 20:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.