Git Product home page Git Product logo

Comments (3)

frankdejonge avatar frankdejonge commented on July 16, 2024

@GreatOwl the pipeline builder is a rather trivial part of the package. There's also no code consuming the builder. What kind of specialised building mechanisms did you have in mind? My initial thought would be, if specialised building capabilities are desired it could just as well be implemented without implementing an interface, or even by extending the current implementation (I'm not a huge fan of extending, but hey). Since the interface of the builder is rather strict, it only accepts callable types, any alternate implementation would probably implement additional methods. When doing to hinting on the builder interface would not be sufficient when consumer said builder. However, maybe you can provide me with some insights into how you use it and how that fits into creating an interface for the builder. I'm always open to feedback.

from pipeline.

GreatOwl avatar GreatOwl commented on July 16, 2024

@frankdejonge sure!

My initial implementation with modifying the builder was due to the original deficiencies in not having the ability to pass a custom processor. My custom implementation (decorating and creating an interface) allowed me to create a builder that allowed me to wrap every passed stage in a function that provided what I can now do with a custom processor. ie. a short circuit for validation functions.

Since clearly processors resolved this, allow me to stretch the concept a bit. A builder is essentially a collection of stages, which anyone can create, which can build a pipeline from those stages. As being a collection, if it were interfaced and tweaked slightly, you could do collection operations on the stages, merging, intersecting, filtering or reducing of the stages. You could then build the stages once and implement repeatedly in different use cases.

But then again, maybe I too often take to the feeling of everything should be interfaced.

from pipeline.

frankdejonge avatar frankdejonge commented on July 16, 2024

Done

from pipeline.

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.