Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published