Skip to content

This repo is used to curate the code that goes along with a live coding series on working with ADTs in JS

Notifications You must be signed in to change notification settings

evilsoft/working-with-adts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working With Algebraic Data Types in Javascript

This repo is used to curate the code that goes along with a live coding series that can be found here. Each session has its own branch associated to it. To follow along at home, just checkout the branch you are currently watching and have a play with the code.

In this series, we explore different approaches to using ADTs to solve various problems that arise in typical Javascript development. To keep the flow focused, we opt to implement a trivial card guessing game. While the game itself is a little silly, the implementation provides a lot of interesting problems that when solved using ADTs, exposing some fun uses of these things.

The ADT library we are using this series is called crocks and can be found here.

Install

Clone this repo onto your local system, navigate to the folder and run:

$ npm install

This will install the dependencies for this project. After that finishes, you should be good to go.

Usage

Each recorded live session has a branch associated to it. To follow along you can check out the previous branch of the one you are current on, and you will be in the same starting point of the video you are on.

Below is a table that matches the sessions to their respective branches:

Session Branch Command
Functional JS - Working with ADTs - 01 adts-01 git checkout adts-01
Functional JS - Working with ADTs - 02 adts-02 git checkout adts-02
Functional JS - Working with ADTs - 03 adts-03 git checkout adts-03
Functional JS - Working with ADTs - 04 adts-04 git checkout adts-04
Functional JS - Working with ADTs - 05 adts-05 git checkout adts-05

Run the code

To get started running some code, just run the following in the project root:

$ npm start

Now just edit the index.js file in the roots, and your code will be executed on each save.

About

This repo is used to curate the code that goes along with a live coding series on working with ADTs in JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published