Giter Site home page Giter Site logo

eunomia's People

Contributors

brokenseal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

explorigin

eunomia's Issues

A few example fixes

Hello! Nice project, great to see some DCI initiatives. A few comments about the example:

In the context code, actors.choosesFood should be actors.customer.choosesFood, right? And I don't see a menu Role, so actors.menu seems incorrect, but then there's a menu argument in roles.customer.choosesFood, which suggests that the menu isn't a Role at all in the Context (otherwise it doesn't need to be passed around as an argument).

I also think there's a semantic issue with actors, why not call them argument what they are inside the Context, roles, or even context (depends on the passed object of course)? Actors aren't a part of the DCI terminology, and a Role in DCI is just an identifier, so the Eunomia definition doesn't match the DCI definition exactly, which could be confusing.

By creating a separate role object as in the example, the code seems to suggest that Roles can be reused between Contexts, which they shouldn't, but a simple note of that should be enough. (I prefer to put them in the same object directly, look at https://github.com/ciscoheat/haxedci-example for an example)

Lastly, I don't see any interactions between Roles. The example is simplified of course, but to a beginner it looks like the interactions should be orchestrated by the Context. Rather the RoleMethods should call each other, to create a distributed algorithm instead of a monolithic, all-knowing Context. The Context just kicks off an interaction (from takeOrder and serveFood), not much more.

Except for that the structure looks good, and I assume that the Roles won't have a wrapper to create identity issues, so I'll be following this with interest!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.