#184 Fluent Interface pattern#225
#184 Fluent Interface pattern#225npathai merged 5 commits intoiluwatar:masterfrom hannomalie:fluentinterface
Conversation
|
@hannespernpeintner Did you get the lazy meaning? You can try implementing if you want. You know it never hurts to have something extra. |
|
Yes i got it. I'll implement a lazy version as well :) |
|
Okay, took me more time than expected because the lazy implementation is more complex than the eager one - but I added a lazy implementation and extracted an interface. Would be nice to hear your thoughts :) |
|
@hannespernpeintner I have been a bit busy lately. Will be sending initial comments soon. |
|
Hey, what about your feedback? :) |
|
@hannespernpeintner Give me a day or two :) |
There was a problem hiding this comment.
Other way: "Filters the contents of Iterable using the given predicate, leaving only the ones which satisfy the predicate."
|
@hannespernpeintner I am done with initial review. Awaiting your response. |
|
Thank you very much for your excellent feedback. I corrected everything you stated (I think) - that's the reason I passed on replying to some of your comments. Some points probably need further discussion, so I replied to them directly. |
There was a problem hiding this comment.
We don't need to populate the list on each computeNext(). You can cache it on first call and then utilize it. If you have issues implementing then I can give you a sample.
There was a problem hiding this comment.
Yes you're right. I changed it.
|
Summary of review:
|
Thank you so far, I'm looking forward to your next comments :) |
I am moving towards final review. Will provide comments soon. |
|
I ammended documentation changes. Nothing left to do currently, thank you for your help, I'm waiting for further responses :) |
|
LGTM you can move towards other tasks to complete this PR. Tasks:
|
|
The latest commit should complete the PR. However, I can't find a guideline to your code coverage rules. Currently, the coverage is 91.5%. |
|
@hannespernpeintner Its good enough 👍 I will bring this point up on chat room and soon we will add the guideline on coverage ratio. |
There was a problem hiding this comment.
Was a mistake, made it private.
|
@hannespernpeintner You have not created an |
…ations optimized
…us iterator for lazy fluentiterable, small documentation changes
|
Ah, this totally bypassed me. I rebased and added the description. Anything else (the ci seems to fail)? :) |
There was a problem hiding this comment.
What do you want me to write under the credits section? FluentInterface from Guava is linked in the real world examples and the interface's class documentation states the inspiration from Guava.
There was a problem hiding this comment.
|
@hannespernpeintner Include |
|
Included. I considered some relationships as unimportant, so I left them out. Everything pushed, what else? :) |
fluentinterface/index.md
Outdated
There was a problem hiding this comment.
This can also be a part of FAQ?
"What is the difference between FluentInterface and Builder pattern?"
Also we can elaborate the answer there by saying that Builder often uses a FluentInterface to make it easy to construct objects when they have many optional parameters and so on.
There was a problem hiding this comment.
Moved it to the FAQ and extended it a bit.
|
@hannespernpeintner I have commented on a few last changes. Once done we can merge it 🎉 |
|
I corrected them, kindly ask you to have the last look on it :) |
No description provided.