This table in Python contains a list of code smells and the design patterns that address them. class CodeSmells: Duplicated_Code = [ form_template_method, introduce_polymorphic_creation_with_factory_method, chain_constructors, replace_one__many_distinctions_with_composite, extract_composite, unify_interfaces_with_adapter, introduce_null_object, ] Long_Method = [ compose_method, move_accumulation_to_collecting_parameter, replace_conditional_dispatcher_with_command, move_accumulation_to_visitor, replace_conditional_logic_with_strategy, ] Conditional_Complexity = [ # Complicated conditonal logic replace_conditional_logic_with_strategy, move_emblishment_to_decorator, replace_state_altering_conditionals_with_state, introduce_null_object, ] Primitive_Obssession = [ replace_type_code_with_class, replace_state_altering_conditionals_with_state, replace_conditional_logic_with_strategy, replace_implict_tree_with_composite, replace_implicit_language_with_interpreter, move_emblishment_to_decorator, …
Read More »