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
Flow enum #3013
Flow enum #3013
Conversation
Jenkins Build SummaryBuilt from this commit Built at 20190802 - 23:24:31 Test Results
|
I'm just getting started on this review, but I wanted to leave some first impressions.
On that last point, here's what I'm thinking... All three of the new So here are alternative names for the
I'm not great at naming, so I'm not wedded to these names. But I think they may be easier to distinguish than the ones you're currently using. I'm sure there are yet better names. Just for your consideration. Thanks for doing this! |
Let's look at how changing the variables type Type declarations: From:
To:
From:
To:
(Or if we don't use the small helper functions) From:
To:
From:
To:
I prefer the "From" version in all those cases. Given where a variable like Having said all that, I don't love the name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍, bool input parameters being replaced by enums always makes me happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me. 👍
* Use enums for StrandDirection, DebtDirection, and QualityDirection
Thanks for the reviews: Squashed, forced-pushed, and parked passed (tho of course I'll respond to more feedback if it comes) |
Refactoring some payment code (this will be used in another w.i.p. PR, but since it's small and stands on it's own I gave it its own PR). There should be no functional changes in these patches.
A couple notes:
The splitting
qualities
intoqualitiesSrcRedeems
andqualitiesSrcIssues
is needed in the w.i.p. PR. Otherwise I would have kept the single function.I added a commit for convenience function for one of the enums. There's always a tradeoff for small functions like this. I left it separate so it'll be easy to remove if reviewers don't like it.