Preguntas de Strategy Pattern
- Describa que se entiende por Code Smell
¿En que consisten cada uno de estos smells?
- Duplicated code
- Contrived complexity
- Large class
- Feature envy
- Inappropriate intimacy
- Refused bequest (herencia negada)
- Lazy class / Freeloader
- Excessive use of literals
- Large Cyclomatic complexity
Downcasting
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?
- Too many parameters
- Long method
- Excessively long identifiers
- Excessively short identifiers
- Excessive return of data
- Switch Smell
- Enuncie el OCP: Open/Closed Principle
- ¿Que se entiende por Design Pattern?
- Explique como se resuelve el Switch Smell usando el Strategy Pattern