in reply to Re: elsif stupid question...
in thread elsif stupid question...
Yeah, presuming an OOP context lots of branches may indicate you should use the "Replace Conditional with Polymorphism" refactoring. Push the different conditional behaviors down into a method in child classes and just call that method.
But again, that presumes a set of circumstances which may not apply in this case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: elsif stupid question...
by blazar (Canon) on Apr 28, 2005 at 15:53 UTC |