New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about Stage API design #90
Comments
💡 ahhh thank you this is the piece that I was missing. I'm still not sure that I really grok the record classes but at the surface level at least it makes sense.
I dunno, I think a lot of API design comes down to what feels intuitive, and I think your point about matching the affordances of an ordinary function is a good one. But speaking of intuition it does feel odd to me to have that function get the stage object, based on my current understanding (which might still be wrong 🙃). Maybe you answered this already in your last paragraph, but passing in the params instance directly seems like it would make the wrapped function a little more like something that is just accepting an experiment configuration + dynamic inputs. In any case this is all just my uninformed opinion and I don't need more explanations or changes. Thanks for letting me test out curifactory! |
Thanks for all the feedback and the in-depth review! |
In this example from the documentation
the stage accepts two arguments -- the record, and the initial value. The initial value is referenced directly by name, but other things the function needs -- specifically the params object -- are accessed as an attribute on the record.
Is there a reason that inputs aren't passed as attributes on the record?
Somewhat related -- later in the getting started docs is this example of using an aggregation stage
Here we are accepting a singular record, followed by an iterable of records. I feel like I must be misunderstanding something about the record objects because I don't see why the singular record is required. Could we just have the iterable?
The text was updated successfully, but these errors were encountered: