Day 2 of Boot camp
The day 2 of the Andela Fellow Class XIII boot camp class 2 started off from where day 1 ended which look into the food for thought for the next day “How do we share code”. And so the first of day 2 activities was a class discussion on the topic “How do we share code”. Participants share their thoughts on the issue of code sharing. After numerous interesting contribution, the instructor highlighted the following points as regards the conceptof code sharing:
- It is important for developers in a team to share their code
- Taking the case study of a dev team, the best way to share code is to use version control systems. This is because you can actually save the different versions of code. As you build your code, you create new versions and can always go back to previous versions.
- Version control works in two ways. These are Centralized Version Control System(CVCS) and Distributed Version Control System(DVCS). While the CVCS has a central repository and everyone working on a team can make changes directly to the repository, DVCS is a version control system where each developer has a separate full version control system where they can work on and then there is an online repository where they can push their code to.
- Examples of CVCS are TFS, Subversion, Mercuria while examples of DVCS are Github and Bitbucket.
- The difference between Git and Github is that Git is a tool to manage your code history while GitHub is a hosting service for Git repositories.
After a concise introduction of Git and Github, participants were asked to take a learning course via TryGit(try.github.io). In additon, participants also took Git lessons on Codeschool(www.codeschool.com) and solve certain challenges using Ruby, Git and Github. In the course of taking the challenges, I was able to improve my knowledge on iterations/loops in Ruby and also got familiar with how to create repositories on Github as well as how to add, commit and push in Git using their respective commands. At the end of the challenges, I was able to achieve a lot as I created 4 different ruby codes and in turn add, commit and push each of them to the created Github online repsitory.
Towards the end of the day’s activities, participants had to resume their ruby learning course via www.codecademy.com and subsequently improve their Ruby programming skills. I was able to achieve a lot in the course of learning Ruby and I look forward to completing it by day 3 of the bootcamp.
The day’s activities concluded with an highlight of the food for thought for the next day which was “How do we make sure our code works”.