You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But configurator by nature is not supposed to return anything. So it can be either : void or : self. I think that fluent interface is more convenient as it gives you both usage possibilities.
I'm not necessarily opposed to having it, but I wouldn't use it if you write unit-tests with mocks/prophecies. You'll have to define a willReturn every single time.
I read this article https://ocramius.github.io/blog/fluent-interfaces-are-evil/, I agree that in most cases fluent interfaces are not good.
But configurator by nature is not supposed to return anything. So it can be either
: void
or: self
. I think that fluent interface is more convenient as it gives you both usage possibilities.@iltar , what do you think?
The text was updated successfully, but these errors were encountered: