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

Make builder pattern more practical #90

Merged
merged 10 commits into from
Jan 3, 2021

Conversation

tgotwig
Copy link
Contributor

@tgotwig tgotwig commented Nov 23, 2019

@nesteruk
Copy link

It is confusing to have bar: String in both Foo and FooBuilder — consider renaming one of the bars to something else.

@tgotwig
Copy link
Contributor Author

tgotwig commented Dec 26, 2019

@nesteruk Changed this and a little bit more 🙂

Copy link
Collaborator

@lambda-fairy lambda-fairy left a comment

Choose a reason for hiding this comment

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

LGTM, modulo the comment below

patterns/builder.md Show resolved Hide resolved
@pickfire
Copy link
Contributor

This example does not seemed to be explaining much, maybe we could have a real-life example or an explanation on why it needs to be constructed this way rather than just specifying the struct directly?

@tgotwig tgotwig force-pushed the patch-1 branch 2 times, most recently from 5460fdc to 60cd1b0 Compare October 30, 2020 13:30
@tgotwig
Copy link
Contributor Author

tgotwig commented Oct 30, 2020

@pickfire Hmm, changed it a little bit up.
I think that runnable code is better than not runnable code and the comments should explain enough 🧐

patterns/builder.md Outdated Show resolved Hide resolved
Copy link
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

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

The indentation seemed off, should be 4 spaces rather than 2 spaces.

patterns/builder.md Outdated Show resolved Hide resolved
patterns/builder.md Outdated Show resolved Hide resolved
patterns/builder.md Outdated Show resolved Hide resolved
patterns/builder.md Outdated Show resolved Hide resolved
👷‍♀️ Replace fmt::Display by #[derive(Debug)]


👷‍♀️ Rename FooBuilder to just Builder


👷 Set type for Foo-instance


👷 Change finish(...) to build(...)


👷 Rename FooBuilder artifacts to Builder


👷 Change indentation from 2 spaces to 4 spaces


👷 Rename builder_bar to bar


👷 Change finish(...) to build(...)
patterns/builder.md Outdated Show resolved Hide resolved
patterns/builder.md Outdated Show resolved Hide resolved
patterns/builder.md Outdated Show resolved Hide resolved
Copy link
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

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

Looks good to me. I think it would be good to have one of the maintainer to check this though.

@simonsan simonsan added C-enhancement Category: Enhancements to content S-review Status: A PR that is currently under review or where a review is the next step labels Dec 31, 2020
@simonsan
Copy link
Collaborator

simonsan commented Jan 1, 2021

@tgotwig Hey, thank you for the PR. Could you please rebase on master so the CI is checking this through while we get to reviewing this PR? Thank you ;-)

@tgotwig
Copy link
Contributor Author

tgotwig commented Jan 1, 2021

@simonsan Sure, will do! 😃

@simonsan
Copy link
Collaborator

simonsan commented Jan 1, 2021

@simonsan Sure, will do! 😃

Sorry, haven't seen that there is no addition to summary or anything needed. So I could do it myself. ;-) It's fine then.

@MarcoIeni MarcoIeni dismissed lambda-fairy’s stale review January 1, 2021 20:51

I am dismissing lambda-fairy review because it requested changes on something that was resolved. If I don't do this we can't merge this. If I am making a mistake please tell me!

@simonsan simonsan added this to Review in progress in Content Jan 2, 2021
@simonsan simonsan requested review from MarcoIeni and removed request for lambda-fairy January 3, 2021 10:15
@simonsan
Copy link
Collaborator

simonsan commented Jan 3, 2021

@MarcoIeni You also want to look over it again?

Content automation moved this from Review in progress to Reviewer approved Jan 3, 2021
@simonsan simonsan merged commit 6bab5f3 into rust-unofficial:master Jan 3, 2021
Content automation moved this from Reviewer approved to Done Jan 3, 2021
@simonsan
Copy link
Collaborator

simonsan commented Jan 3, 2021

Thanks! :-)

@tgotwig
Copy link
Contributor Author

tgotwig commented Jan 3, 2021

Cool! 😊🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Enhancements to content S-review Status: A PR that is currently under review or where a review is the next step
Projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants