Skip to content

DDD-Hamburg/complexity-caused-by-state

Repository files navigation

Complexity Caused By State Build Status

Example code for one of the complexities caused by state as discussed in the DDD Hamburg Meetup Group and based on the ideas from the seminal paper "Out Of The Tar Pit" by Ben Moseley and Peter Marks.

Setup

# Clone the repo
$ git clone [email protected]:DDD-Hamburg/complexity-caused-by-state.git

# Install composer and project dependencies
$ make bootstrap

## The experiment

Have a look the `examples` folder to get a grasp of the problem caused by state.
We created different Calculators to solve a very simple calculation problem that leads to common errors.

$ php tool/evaluate_complexity.php

The script will iterate for every Calculator and validate the results.

To be able to fully test every calculator you'll need:
1. Full working environment in Elixir with Phoenix
2. Checkout https://github.com/DDD-Hamburg/complexity-elixir and follow the instructions in the repository to make it work
3. Full working environment in Haskell
4. Checkout https://github.com/DDD-Hamburg/complexity-haskell and follow the instructions in the repository to make it work

General Information

The repository provides a Makefile to help you speeding up your development process.

$ make help
bootstrap    Install composer
tests        Execute test suite and create code coverage report
update       Update composer packages

About

Example project to show complexity caused by state

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •