Code smells 坏味道

  1. Rigidity. The software is difficult to change. A small change causes a cascade of subsequent changes.

  2. Fragility. The software breaks in many places due to a single change.

  3. Immobility. You cannot reuse parts of the code in other projects because of involved risks and high effort.

  4. Needless Complexity.

  5. Needless Repetition.

  6. Opacity. The code is hard to understand.

  • 刚性。很难改变。小改动会引发连锁的变动。

  • 脆弱。一处改动,多处崩溃。

  • 不可移动。无法在其他项目重用,否则风险很大或工作量很大。

  • 无必要的复杂性。

  • 无必要的重复。

  • 晦涩,代码难以理解。

Last updated

Was this helpful?