Preguntas de Strategy Pattern

  1. Describa que se entiende por Code Smell
  2. ¿En que consisten cada uno de estos smells?

    1. Duplicated code
    2. Contrived complexity
    3. Large class
    4. Feature envy
    5. Inappropriate intimacy
    6. Refused bequest (herencia negada)
    7. Lazy class / Freeloader
    8. Excessive use of literals
    9. Large Cyclomatic complexity
    10. Downcasting

      1. In a Java-like language, when learning about polymorphism you commonly see something like this

          class Base { ... }
        
          class Derived extends Base { ... }
        

        Is (Derived*)base_object; an upcast or downcast?

    11. Too many parameters
    12. Long method
    13. Excessively long identifiers
    14. Excessively short identifiers
    15. Excessive return of data
    16. Switch Smell
  3. Enuncie el OCP: Open/Closed Principle
  4. ¿Que se entiende por Design Pattern?
  5. Explique como se resuelve el Switch Smell usando el Strategy Pattern

results matching ""

    No results matching ""