Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digimortl/tycoon
Exercise 3 of Transport Tycoon Exercises for DDD
https://github.com/digimortl/tycoon
bluebook ddd event-driven-simulation go golang simulation smalltalk squeak
Last synced: about 2 months ago
JSON representation
Exercise 3 of Transport Tycoon Exercises for DDD
- Host: GitHub
- URL: https://github.com/digimortl/tycoon
- Owner: digimortl
- Created: 2019-12-20T09:07:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-29T18:13:46.000Z (about 5 years ago)
- Last Synced: 2024-05-19T02:02:56.449Z (8 months ago)
- Topics: bluebook, ddd, event-driven-simulation, go, golang, simulation, smalltalk, squeak
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-golang-repositories - tycoon
README
Transport Tycoon Exercises for DDD solution (https://github.com/Softwarepark/exercises/blob/master/transport-tycoon.md)
The idea to make use of this approach was brought from Smalltalk "Bluebook"
(http://wiki.squeak.org/squeak/64) -- event-driven simulations. Sorry me for my PEP8!
I violated it intentionally for the sake of respect of this great language.First usecase (Exercise 1)
A -> 5 hours
AB -> 5 hours
BB -> 5 hours
ABB -> 7 hours
AABABBAB - > 29 hours
ABBBABAAABBB -> 41 hoursSecond usecase (Exercise 2)
ABBBABAAABBB -> 39 hours
See ./traces directory to investigate domain events.
How to build/run:
GOROOT=/path/to/sdk/go1.13.5
GOPATH=/path/to/workspace
${GOROOT}/go build -o ${GOPATH}/bin/tycoon
${GOPATH}/bin/tycoon exercise-2 ABBBABAAABBBHow to test:
GOROOT=/path/to/sdk/go1.13.5
GOPATH=/path/to/workspace
${GOROOT}/go test -c -o /tmp/usecase_test_go github.com/digimortl/tycoon
${GOROOT}/go tool test2json -t /tmp/usecase_test_go -test.v -test.run "^TestUseCase1|TestUseCase2$"