From the course: C# Hands-on Practice with Data-Structures

How to use GitHub Codespaces

Before jumping into the course, there's a few logistics we should talk about. We'll be using GitHub for the exercise files that will go along with each video. To access the code for a given video, you'll go to the appropriate branch in GitHub. The format is chapter number underscore video number, and then a b or e, depending on whether the code is the beginning state or end state for that video. For example, the starter code for the second video in Chapter 6 will be found in 06_02b. This stands for Chapter 6, Video 2, and b for the beginning code. The ending code for this video would be in branch 02_06e. The e stands for ending. By clicking the different branches, I can view the code online. And this is great. But if I want to work with the code and run it, you have a few options. One option is to go to the branch with the code you want and download the zip file. Then you'd have to download the dependencies to run that code. This is the old way of doing things. Recently, a new way was introduced with GitHub Codespaces. GitHub Codespaces is a cloud-powered environment built into GitHub that makes it easier for us to write code and not worry too much about the setup. To set this code up in a GitHub Codespace, we'll click Create Codespace. Within our codespace, there are a few things already set up for you. Those are C# and .NET. They're already installed and ready to go. This has the code from branch 06_02e, and this tool allows us to get started with minimal overhead. So let's jump in.

Contents