Skip to main content
2 events
when toggle format what by license comment
May 22, 2019 at 21:27 comment added Brian Kessler The problem with this approach is that there may be some long chain of dependencies between the initial invocation of some code and the code which would contain the conditional logic, so using two classes instead would require conditional logic to determine which class to invoke which would mean passing information all the way from the beginning of the chain. And if I were to do that, I might as well use that for my conditional logic in the class itself.
May 21, 2019 at 8:35 history answered Pranay Jaiswal CC BY-SA 4.0