Monday 3 July 2017

Software Engineering: Bad Smells! (Smelly code)

Bad Smells!

What are bad smells?
This refers to any symptom in the source code of a program that possibly indicates a deeper problem. 

These symptoms do not mean that the program does not function, but instead this shows weaknesses in design that may be slowing development or increasing risk of bugs or failures in the future.

The bad smells...

  1. Repetition: Copied, pasted, slightly modified
  2. Opacity: Bad naming
  3. Needless Complexity: Components add no direct benefit
  4. Rigidity: Change in code will need a cascade of changes
  5. Fragility: Slightest error the system does not usually handle
  6. Immobility: Design hard to re-use (extensiblility)
  7. Viscosity: Shortcuts can be made in the code
  8. Loose/Tight Coupling: Class dependency on each other



No comments:

Post a Comment

Software Engineering: Bad Smells! (Smelly code)

Bad Smells! What are bad smells? This refers to any symptom in the source code of a program that possibly indicates a deeper problem.  ...