Local Setup
For this course, you will need a Mac or Ubuntu (GNU/Linux) machine.
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
- Ubuntu
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>
Ubuntu comes with a package manager called apt
. To install software, run the following command in a terminal:
sudo apt install <package-name>
Visual Studio Code
We will be using Visual Studio Code as our code editor.
To install it, run:
- macOS
- Ubuntu
brew install --cask visual-studio-code
sudo apt install code
Docker
We will be using Docker to run our code in a consistent environment.
To install it, run:
- macOS
- Ubuntu
brew install --cask docker
sudo apt install docker-ce docker-ce-cli
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:
- macOS
- Ubuntu
brew install pip
sudo apt install python3-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:
- macOS
- Ubuntu
brew install llvm
sudo apt install clang
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:
- macOS
- Ubuntu
brew install cmake
sudo apt install cmake