Skip to content

Code

Code#

Introduction#

Readability#

Maintainability#

Testability#

Measurements & Metrics#

Cognitive Complexity#

Thomas J. McCabe

Ref: 1. https://blog.sonarsource.com/cognitive-complexity-because-testability-understandability 1. https://www.sonarsource.com/docs/CognitiveComplexity.pdf 1. https://medium.com/takeaway-tech/insights-in-cyclomatic-and-cognitive-complexity-in-your-application-58922ae59e80

Cyclomatic Complexity#

  • Map
  • Factory Pattern
  • Strategy Pattern
  • Command Pattern
  • Repository Pattern
  • Rule Engine