We have a .NET application (VS 2008) that uses the Factory and Command Patterns to generate & invoke commands. Commands are logged, may have or not have timer support and are classified to categories which are also hierarchical (i.e. in category A you have commannd A1 and command A11 that is inherited from command A1 and so on...)
The difficulty with this is debug, since there are about 7 levels in the hierarchy , it takes time to navigate and find the problem origin.
1) When I did OO courses, I remember that they strongly recommended not to pass the 3 object hierarchy depth , is that true?
2) What design alternatives can you recommend in order to make our commands hierarchy shorter ?