Answers.Body: <p>The biggest one for me would be a reason to use version control. When you're writing small lab assignments, version control probably isn't worth all that much. It's when they get to a point where projects become larger than a handful of methods, or when you're working on separate pieces of a larger project with partners that it becomes useful. </p>
  
  <p>Version control, specifically Git and GitHub, is definitely on my list of new topics to add to my 2nd year course next year. My students are doing collaborative projects right now and it's painful to watch them email code back and forth. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T17:36:49.803Z
Answers.Text: Does 'having lost hours of coding through not using backups' count as a reason?
Answers.UserDisplayName: Sean Houlihane
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T17:40:25.970Z
Answers.Text: Yeah, probably should :) I've certainly had students accidentally delete things they're working on.
Answers.UserDisplayName: Ryan Nutt
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-18T03:02:56.120Z
Answers.Text: +1 on the reason. A big motivation for some of my students is the easy ability to access their code from home. And when collaborative projects come along many will appreciate having tools to support parallel development (my students want it to work like Google Docs with partners typing in the same file at the same time - while at the same time resisting pair programming, I'd love a way to let them try that without a lot of overhead...).
Answers.UserDisplayName: dlu
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T17:15:46.047Z
Answers.LastActivityDate: 2017-05-23T18:42:59.117Z
Answers.LastEditDate: 2017-05-23T18:42:59.117Z
Answers.UserDisplayName: Ryan Nutt
Answers.Body: <p>Version control and the associated tool addresses the following (at least)</p>
  
  <ul>
  <li>Backups (for when you lost or deleted something)</li>
  <li>History of changes (for when you made a mistake and need to go back)</li>
  <li>Collaborative working (sharing and merging)</li>
  <li>Reviewing</li>
  <li>Bug fixing and development on different branches</li>
  </ul>
  
  <p>As I've written these, I think they're roughly in order of being less obvious or harder to grasp. Everyone is familiar with the need to keep a backup of an essay (we hope) but the idea of going back to look at how something was written at the start of last week's lesson is rather more unique to writing code.</p>
  
  <p>The most obvious prerequisite would be to get to the stage where rather than starting to write a program from scratch, it's better to take something old and re-purpose it. This is roughly the same point where you start to care about loosing something (to start with, code gets better if you write it, throw away and start from scratch again).</p>
  
  <p>Although it's slightly tangential, I would also say it is better to talk about review and collaboration before introducing version control.</p>
  
  <p>I don't think it's as important to be in a position (from the start) to need to explain about switching between different branches, cherry picking, etc. A lot of the really useful ideas come from the head, logs and diffs.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T17:58:21.243Z
Answers.LastActivityDate: 2017-05-23T17:58:21.243Z
Answers.UserDisplayName: Sean Houlihane
Answers.Body: <h1>The pre-requisits</h1>
  <p>The only pre-requisites to using a computerised revision control system are:</p>
  <ul>
  <li>Use of a computer.</li>
  <li>Use of a computer to, create some artefact (e.g. document), and to then improve on this artefact (create multiple revisions).</li>
  </ul>
  <p>However It may be possible to teach a non-computerised revision control system.</p>
  <h1>What to revision control</h1>
  <p>The artefacts do not need to be source code. We often mix up revision-control with source-control. However revision control can be used for so much more.</p>
  <p>You can use revision control for every file in your home directory (I also revision control <code>/etc</code>). However to get the best value from it, you will need a good diff tool for each file type. Thus making Microsoft's Office documents not a good choice.</p>
  <p>Therefore it may be better to start with some other artefacts, that are not programs.</p>
  <h1>Which tool.</h1>
  <p>There are many revision control tools. Three of the most powerful/popular are git, mercurial, and subversion. The tool that you start with, will make a large difference to the learning.</p>
  <ul>
  <li>git (<code>git</code>): very powerful, distributed repositories, very hard to use/learn, flavour of the month, free repo hosting service available.</li>
  <li>mercurial (<code>hg</code>): very powerful, distributed repositories, easy to use/learn, similar to git, free repo hosting service available.</li>
  <li>tourtoisehg: a graphical tool that integrated mercurial with the file explores, and other graphical tools, for Gnu/Linux and Microsoft's Windows.</li>
  <li>subversion (<code>svn</code>): a slightly older tool, very powerful, centralised repository, supports locking where needed, makes it better for non-mergable documents, easy to use/learn.</li>
  <li>tourtoisesvn: a graphical tool that integrated subversion with the file explores, and other graphical tools, for Gnu/Linux and Microsoft's Windows.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-15T10:46:16.147Z
Answers.LastActivityDate: 2018-03-15T10:46:16.147Z
Answers.LastEditDate: 2020-06-18T08:36:57.023Z
Answers.UserDisplayName: ctrl-alt-delor
Body: <p>I'm interested in introducing version control to a HS CS class, and was considering starting with Github since it's a fairly standard tool used by developers.</p>
  
  <p>What are pre-requisites for understanding version control that I should make sure students master first?</p>
  
  <p>Any suggestions on other ways to introduce this topic to students are definitely welcome!</p>
  
Tags: <github><revision-control>
Title: on-What are pre-requisites for teaching version control to a high school CS class?
ThreadText: # on-What are pre-requisites for teaching version control to a high school CS class?
  
  (Asked by: username_0 on 2017-05-23)
  
  I'm interested in introducing version control to a HS CS class, and was considering starting with Github since it's a fairly standard tool used by developers.
  
  What are pre-requisites for understanding version control that I should make sure students master first?
  
  Any suggestions on other ways to introduce this topic to students are definitely welcome!
  
  **Tags:** github, revision-control
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2017-05-23. Score: 7
  
  The biggest one for me would be a reason to use version control. When you're writing small lab assignments, version control probably isn't worth all that much. It's when they get to a point where projects become larger than a handful of methods, or when you're working on separate pieces of a larger project with partners that it becomes useful.
  
  Version control, specifically Git and GitHub, is definitely on my list of new topics to add to my 2nd year course next year. My students are doing collaborative projects right now and it's painful to watch them email code back and forth.
  
  > **Comments:**
  > **username_2**: Does 'having lost hours of coding through not using backups' count as a reason?  
  > **username_1**: Yeah, probably should :) I've certainly had students accidentally delete things they're working on.  
  > **username_3**: +1 on the reason. A big motivation for some of my students is the easy ability to access their code from home. And when collaborative projects come along many will appreciate having tools to support parallel development (my students want it to work like Google Docs with partners typing in the same file at the same time - while at the same time resisting pair programming, I'd love a way to let them try that without a lot of overhead...).  
  
  ---
  
  ### Answer by username_2 on 2017-05-23. Score: 2
  
  Version control and the associated tool addresses the following (at least)
  
  * Backups (for when you lost or deleted something)
  * History of changes (for when you made a mistake and need to go back)
  * Collaborative working (sharing and merging)
  * Reviewing
  * Bug fixing and development on different branches
  
  As I've written these, I think they're roughly in order of being less obvious or harder to grasp. Everyone is familiar with the need to keep a backup of an essay (we hope) but the idea of going back to look at how something was written at the start of last week's lesson is rather more unique to writing code.
  
  The most obvious prerequisite would be to get to the stage where rather than starting to write a program from scratch, it's better to take something old and re-purpose it. This is roughly the same point where you start to care about loosing something (to start with, code gets better if you write it, throw away and start from scratch again).
  
  Although it's slightly tangential, I would also say it is better to talk about review and collaboration before introducing version control.
  
  I don't think it's as important to be in a position (from the start) to need to explain about switching between different branches, cherry picking, etc. A lot of the really useful ideas come from the head, logs and diffs.
  
  
  ---
  
  ### Answer by username_4 on 2018-03-15. Score: 1
  
  # The pre-requisits
  
  The only pre-requisites to using a computerised revision control system are:
  
  * Use of a computer.
  * Use of a computer to, create some artefact (e.g. document), and to then improve on this artefact (create multiple revisions).
  
  However It may be possible to teach a non-computerised revision control system.
  
  # What to revision control
  
  The artefacts do not need to be source code. We often mix up revision-control with source-control. However revision control can be used for so much more.
  
  You can use revision control for every file in your home directory (I also revision control `/etc`). However to get the best value from it, you will need a good diff tool for each file type. Thus making Microsoft's Office documents not a good choice.
  
  Therefore it may be better to start with some other artefacts, that are not programs.
  
  # Which tool.
  
  There are many revision control tools. Three of the most powerful/popular are git, mercurial, and subversion. The tool that you start with, will make a large difference to the learning.
  
  * git (`git`): very powerful, distributed repositories, very hard to use/learn, flavour of the month, free repo hosting service available.
  * mercurial (`hg`): very powerful, distributed repositories, easy to use/learn, similar to git, free repo hosting service available.
  * tourtoisehg: a graphical tool that integrated mercurial with the file explores, and other graphical tools, for Gnu/Linux and Microsoft's Windows.
  * subversion (`svn`): a slightly older tool, very powerful, centralised repository, supports locking where needed, makes it better for non-mergable documents, easy to use/learn.
  * tourtoisesvn: a graphical tool that integrated subversion with the file explores, and other graphical tools, for Gnu/Linux and Microsoft's Windows.
  
  
  ---
  
  