DEV Community

Discussion on: Cyclomatic Complexity is the Mind Killer

Collapse
 
pareshjoshi profile image
Paresh

I had VS plugin installed which used to highlight cyclomatic complexity for each function/method. That really helped me refactor existing code.

I have seen code with 20 nested branches very difficult to read and understand very simple functionality

Collapse
 
integerman profile image
Matt Eland

Yeah, there are also plugins for cognitive complexity in both Rider and Visual Studio. Be careful as some can be inefficient and tax your CPU.