When I was studing computer science in the Marmara University, we were sending the project documents and the codes we developed in the courses to the instructors via floppy disks. The deadlines were strict. If we missed the deadlines, the projects were rejected. In some cases, we were losing grades on the every single day after the deadline. For example, if we submit our projects 5 days late, we were able to get at most 50 points.
I know that project submission method is different in many other universities. In some courses, people send files to instructors via emails. In others, there exist submit pages and students upload the files via these pages. If the deadline is reached, submit button disappears and no one can submit after the deadline.
Sometimes students are able to submit projects by using command line tools, like we use in coursera submissions.
Even though these methods are handy and pretty easy to use, instructors cannot gather the following useful information very easily.
- Instructors cannot follow the status of the project without asking the project team members.
- Instructors have lots of throubles while running the projects if the project is not build in correct way.
- Instructors cannot understand how project is developed if there is no efficient documentation.
- For group projects, instructors cannot detect who has worked on the development of the project and who does nothing.
The world is changing and even the philosophy and principles of software development are changing. We have to find a new submission method that should make the instructors’ life easier and should let the students develop software as if these are open source projects.
BitBucket Based Submission System
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. The source code of all projects and course assignments has to be maintained in version control systems.
Git is a distributed revision control and source code management (SCM) system with an emphasis on speed. Git will be used for managing the codebase and the project. Therefore, it is important to learn how git is used in detail.
Bitbucket is a web-based hosting service for projects that use either the Mercurial or Git revision control systems. Bitbucket offers both commercial plans and free accounts. It offers free accounts with an unlimited number of private repositories (which can have up to five users in the case of free accounts). The project teams will use bitbucket.org for hosting code repositories.
Let’s say that you are in a team of 3 students and you are to build a software as an assignment of your course. The rules for managing code and submitting the assignments are as simple as follows:
- Each team member should have a BitBucket account.
- One member should create a team via “create a team” page of bitbucket.
- The admin of the team account should add the other members to the team settings. The team should have a separate name and an email address. No one except the instructors and the team members is allowed to join to the team.
- Account of the instructor should also be added to the team as a team member.
- Important notice: The free plan in BitBucket gives you a team account with five members on an unlimited number of private repositories. That’s why, it is not possible to let the 6th developer access the team’s private repository.
- If it is an assignment (and the code has to be kept as private due to course regulations), a private repository should be created.
- If there is no need to keep the source private (and allowed by the instructor), than it is not mandatory to create a private repository. The team can create a public repository to make the code open to public. In that case, the team size and the number of people who can access the public repository can exceed 5 members. Note that it is important not to accept pull requests from outside the team.
- Code should be maintained in BitBucket. Instructors can check the commit history and the code to guide the team throughout the project.
- “Read me” file has to be available in the root of the project describing the details of the project, such as how we can build and run the project, how to install prerequisite technologies, etc.
- All documents (i.e. analysis documents, design documents, presentations, papers, progress reports, etc.) related with the project should also be committed to the project repository. That allows the teams to version documents as well.
- Any Vagrantfile, or config file can also be managed in the repository to make deployment and delivery easier.
- The team members should push their commits to the private repository. That let’s the instructors follow who works on the project and who does nothing.
- When the deadline is reached, there is no way to stop the team from developing the project. But that’s fine..
- When the instructor wants to evaluate the project, the instructor schedules a cronjob at the time of the deadline that clones all repos (this can be done with a single POST to the API) for later examination and grading. [Thanks Erik van Zijst for the tip]
Why BitBucket, not GitHub
The main reason to prefer BitBucket is the ability of users to create unlimited number of private repositories for free. On GitHub, only paid users are able to create private repositories.
Actually both Github and BitBucket have offerings to university students. If you register with your university email address and verify it, BitBucket offers you unlimited free private repositories. Also GitHub offers free micro plan, which lets the students be able to create 5 private repositories for free.
BitBucket and Git 101
I got several requests to give information about how to use BitBucket and Git from scratch. That information will be valuable to the students or to the ones who has not been experienced git or Bitucket before.
Please check the documentation section git-scm.com for learning git. Knowing git is the main prerequisite for following the submission steps. After you learn how to install & configure git, checkout, commit, push and pull commands, it is time to use BitBucket for your projects. Creating a repository and pushing your codebase to it is as easy as follows.
- Log on to BitBucket.
- Set up a repository.
- Click clone in the webapp in your repository and copy the command to your clipboard.
- Paste the command into your terminal (assuming you have git installed).
- Copy all files for your project into the directory you cloned.
- Type ‘git push’ and enter your BitBucket password.
The main objective of BitBucket based submission system is to let students manage their assignments as if they are open source projects and make the submission super easy by not submitting anything. The evaluation process will become easier than the ones in old submission methods. That will be good for both instructors and the students.
- [03.10.2013] The 14th step is updated with the warning of Erik van Zijst. For more info, please refer to his comment.
- [04.10.2013] Added information about the offers BitBucket and GitHub have for university students.
- [07.10.2013] Added “BitBucket and Git 101″ section to give more beginner level information