fluent interface: should add(component) return component or self
I've faced this issue several times. I have a method that adds a component to a container. Should it return self (this) (for method chaining), or the component. The problem arises when the method 'add' might create the component (for user's convenience). The caller now needs the handle of the component to call methods on it. I obviously...