Skip to content

bad smell for code #11

Description

@Hongyi23

I found many materials describing bad smell in code, and I choose some which may be easy to check.

*Duplicated code

  1. Same code structure in more than one place.
  2. Same expression in two sibling subclasses.
  3. Code is similar but not the same.
  4. Methods do the same thing with a different algorithm.

*Long method

  1. Using a temporary variable to hold the result of an expression.
  2. Methods with long list of parameters.
  3. Too many conditions and loops.

*Long Parameter List

  1. A method call requires passing long list of parameters.

*Divergent change / shotgun surgery

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions