MENU

Fun & Interesting

Cyclomatic Complexity Explained With Practical Examples

Codewrinkles 2,469 lượt xem 7 months ago
Video Not Working? Fix It Now

Cyclomatic complexity is one of the most important metrics when it comes to measuring code quality. Cyclomatic complexity measures the complexity of a program based on the number of decision points and liniar execution paths. In this video I explain how exactly cyclomatic complexity is calculated and how this might be important for the code we write. The cyclomatic complexity score could for instance be an indicator of the number of unit tests we need to write. Last but not least I show on a real solution how we can make our code easier to maintain and more readable by paying attention to the cyclomatic complexity and trying to reduce it.
#programming #dotnet #csharp #cleancode #softwarearchitecture

Content:
1. intro: 00:00
2. Defining cyclomatic complexity: 00:35
3. Calculating cyclomatic complexity: 03:34
4. Visualising cyclomatic complexity in the IDE: 07:40
5. Refactoring to lower cyclomatic complexity: 08:47
6. Understanding complexity in a real solution: 11:41

Comment