Skip to content
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

Swifty APIs (Pt 2) #177

Merged
merged 2 commits into from
Sep 13, 2017
Merged

Swifty APIs (Pt 2) #177

merged 2 commits into from
Sep 13, 2017

Conversation

edjiang
Copy link
Contributor

@edjiang edjiang commented Aug 31, 2017

Reduce complexity of the RideParameters model by removing the builder associated with it.

RideParameters represents the set of parameters sent via a deeplink, ride request widget, or the ride estimate/request API endpoints.

In the previous implementation, the primary thing the builder added was to ensure that the RideParameters were immutable. However, I don't think there is a huge issue around mutability with this model, and the builder pattern is not super common in Swift anyways.

@edjiang edjiang requested a review from bobz August 31, 2017 22:05
@edjiang edjiang mentioned this pull request Sep 1, 2017
7 tasks
Copy link

@bobz bobz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's refactor this to retain the immutability.

@bobz
Copy link

bobz commented Sep 7, 2017

Conditional approval, but let's go back and add immutability with a simplified builder.

@edjiang edjiang changed the base branch from swifty-apis-pt-1 to develop September 13, 2017 00:19
@edjiang edjiang merged commit 17d9edc into develop Sep 13, 2017
edjiang added a commit that referenced this pull request Sep 14, 2017
edjiang added a commit that referenced this pull request Sep 14, 2017
edjiang added a commit that referenced this pull request Sep 15, 2017
edjiang added a commit that referenced this pull request Sep 15, 2017
* Make RideParameters immutable and add builder to mutate, addressing feedback in #177

* Remove circular dependency in builder

* Un-nest RideParametersBuilder
@edjiang edjiang deleted the swifty-apis branch September 15, 2017 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants