Builder Design Pattern and Cyclomatic Complexity Reduction(johnjr.dev)
johnjr.dev
Builder Design Pattern and Cyclomatic Complexity Reduction
https://johnjr.dev/posts/builder-design-pattern-and-cyclomatic-complexity-reduction/
https://johnjr.dev/posts/builder-design-pattern-and-cyclomatic-complexity-reduction/
The rest of this post is organized as follows sections:
- The problem explains the problem I was solving. - Creating the bit mask field presents a solution to the problem. - Cyclomatic Complexity discusses cyclomatic complexity and calculates this metric for the solution presented in the section above. - Builder design pattern explains the builder design pattern and describes the refactoring process that removed complexity. - Conclusion summarizes this post. - References provides references related to the topics discussed here. All the examples shown here are in C++.