Skip to main content
Version: 2023

Local Setup

For this course, you will need a Mac or Ubuntu (GNU/Linux) machine.

note

If you are using Windows, you can run Ubuntu inside Windows thanks to WSL.

Package Manager

First, let's get a package manager to help install the software that will be needed.

macOS doesn't come with a package manager by default, so we will install Homebrew.

Open a terminal and run the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Once Homebrew is installed, you can install software by running:

brew install <package-name>

Visual Studio Code

We will be using Visual Studio Code as our code editor.

To install it, run:

brew install --cask visual-studio-code

Docker

We will be using Docker to run our code in a consistent environment.

To install it, run:

brew install --cask docker

Python

We will be using Python as one of our programming languages. Python is a popular programming language that is used for many different things: from web development to data science. It is an interpreted language, which means that it is not compiled: it is run directly.

Python 3 is the latest version of Python. It should be installed by default on macOS and Ubuntu.

To check if you have Python 3 installed, run:

python3 --version

Pip

Pip is the package manager for Python.

To check if you have Pip installed, run:

pip3 --version

If you don't have Pip installed, you can install it by running:

brew install pip

C++

We will be using C++ as one of our programming languages. C++ is a popular programming language that is used for many different things: from embedded systems to video games. It is a compiled language, which means that it is compiled into machine code before it is run.

CLang

CLang is a compiler for C++. A compiler is a program that takes code written in a programming language and turns it into machine code.

To check if you have CLang installed, run:

clang --version

If you don't have CLang installed, you can install it by running:

brew install llvm

CMake

CMake is a build system for C++. A build system is a program that organizes the compilation of a project.

To check if you have CMake installed, run:

cmake --version

If you don't have CMake installed, you can install it by running:

brew install cmake