/type-and-data-driven-programming-samples

Associated code for my blog post on Type-driven was Data-driven Programming

Primary LanguageClojureMIT LicenseMIT

Functional vs Data-Driven Development: Associated Code

Associated code for the blog post Functional vs Data-Driven development: a Case-Study in Clojure & OCaml.

The code in the Clojure section is mostly taken verbatim from chapter 5 the Brave Clojure book: https://www.braveclojure.com/functional-programming/

OCaml

To build the OCaml program, you'll need OCaml 4.14+.

$ cd ./ocaml/

Install the deps

$ opam install containers iter

Build the project

$ dune build

Run the game

$ dune exec ./main.exe

Clojure

To build the Clojure project, you'll need lein on your system. To build the OCaml program, you'll need OCaml 4.14+.

$ cd ./clojure/

Run the project

$ lein run