Long function

  • problem: they are really difficult to understand and you need to set a proper name. Take into account
  • solution: Extract it to another function or class[refactor sets.md)

Mysterious name

  • problem: any name of variables, functions or classes that don't communicate what it does or how to use it
  • solution: * Rename them
  • If there is no good name, may be a sign of bad design

duplicated code

  • problem: you have the same structure in different parts of the code
  • solution: extract to a function / class

long parameter list

  • problem: too complicated to handle
  • solution: use semantic objects such DTOs

The rest of the content (4 read minutes) is restricted.

Please use your personal access token or register to access.

Create account or login