beanz Magazine

Version Control

Luke Anderson on Flickr

How do you keep track of many people working on the same set of code?

If you end up working on a software project with other people, you’re probably going to encounter version control systems. While there’s a number of version control systems out there right now, they all do basically the same thing: give programmers a way to share code with each other while staying on the same page.

Imagine for a moment you and two friends want to work on a game together. How are you going to do it? The simplest thing would be to just have one computer that’s the “work computer” and you work in-person together, maybe pair-programming or even taking turns coding. Of course, what about working on your own time or at your own home? It’s way more convenient to be able to write code whenever you have the time instead of having everyone get together.

What do you do instead? Well, the obvious thing to try might be emailing each other with the updated code every time you’re ready to share it. You can send the files that you change to each other and then download the code and put it in the right place.

This will work fine, if slightly annoyingly, as long as you always work on different files. But imagine if one of your friends decided to work on fixing the collision detection for your game, the same as you, and then emailed it out only minutes after you sent your own changes. Now you’ve got the tough problem of someone needing to figure out how your code conflicts.

 

Become a subscriber and get access to the rest of this article. Plus all our magazine articles.

Stories also include numerous links to help parents, kids, and teachers learn more. Get access today at just $15 per year!

Subscribe Today!

Also In The April 2017 Issue

We all use fonts yet rarely notice they are designed. Here are some interesting details to help you notice fonts.

This iPad app is a creative tool kids can use to explore and record what they learn in school.

Smart software design makes it easy for you to learn how to use it without help.

A new version of a fun Mario-like game that teaches kids coding has been released. Learn HTML and save kittens!

Mark is a designer who also knows a lot about how to use technology to create design.

Design is about solving problems, from donuts to race cars, how we eat to what to wear in cold weather.

Everyone know the difference between saying, “Let’s eat, grandma!” and “Let’s eat grandma!” Computers don't.

The user interface often determines whether or not people can easily use your software.

State is an important concept in computer science as well as our everyday lives.

Links from the bottom of all the April 2017 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about computer science, software programming, and technology for April 2017.

Computers collect garbage the way humans do. Here's how they manage memory space.

Code reviews help programmers improve their code and learn more about the software they build.