This repository contains the "Aspect" game project for the YouTube show the_dev_aspect written in F#.
The code for each part of the F# series is stored in branches of this repo. For each part I include branches for the initial and final states of the code. Here is the current list of branches for each part of the show:
-
Episode 004 - Functional Concurrency with the Actor Model, F# Part 4
-
Episode 005 - Parsing Text with Combinators, F# Part 5
You have two options for cloning the code for an episode:
git clone -b part-N-initial https://github.com/thedevaspect/aspect-fsharp.git
git clone ps://github.com/thedevaspect/aspect-fsharp.git
cd aspect-fsharp
git checkout part-N-initial
If you've already cloned the repository when watching a prior episode, you should just be able to use these commands to get the code for the new episode:
git pull origin
git checkout part-N-initial
Don't forget to replace the
N
inpart-N-initial
with the part number of the episode!
I recommend approach #2 because it will allow you to reuse the repository for downloading the code of future episodes.
In the show I use the Visual Studio Code editor with the Ionide-fsharp extension to do interactive development.
- Run current line of code: Alt + /
- Run current selection of code: Alt + Enter
- Show VS Code's command palette: Ctrl/Cmd + Shift + P or F1
VS Code's command palette contains a ton of commands that are helpful while editing
F# code. Try typing FSI
or F#
in the command palette to see relevant commands.
Please feel free to leave a comment on YouTube or tweet @daviwil if you have any trouble downloading or using this code!
This code is licensed under the MIT License so feel free to use it in your own projects!