Giter Club home page Giter Club logo

Comments (5)

adomokos avatar adomokos commented on May 28, 2024 1

Not really. I'll just go with Ruby's duck typing: if it has a public call method, you can invoke it.

from light-service.

mattr- avatar mattr- commented on May 28, 2024

With the organizer as the outward facing construct here, I dislike the idea of being required to use an organizer by doing a .call. It makes the API less expressive and removes intent that can be communicated with that method name.

That said, I do like .call as a hidden construct like execute is with actions and the executed macro, but I don't have a solution for what that would look like.

from light-service.

adomokos avatar adomokos commented on May 28, 2024

Thanks for the feedback @mattr-!

In order to get orchestrators working properly, we must know what the method is called on the organizer. See the documentation for it here. We could also use metaprogramming to find the one and only (assuming you have one) public class method, but that's error prone.

I've gotten into the habit of using longer organizer names now. So, instead of calling PullsDataFromApi.by_id(x), I just call the organizer PullsDataFromApiById.call(x).

from light-service.

mattr- avatar mattr- commented on May 28, 2024

Extending the name of the organizer might be useful here. Any worries about people confusing these with other types of callable objects and passing an object that responds to call that isn't an organizer?

from light-service.

adomokos avatar adomokos commented on May 28, 2024

Closing this, as #98 has been merged.

from light-service.

Related Issues (20)

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.