Features of a dream programming language dev.to - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from dev.to Daily Mail and Mail on Sunday newspapers.
How to Write Self-Documented Code With Low Cognitive Complexity
Cognitive and Cyclomatic complexity metrics let developers measure code quality, establish a dialogue with business, and put measurable goals in refactoring. by
In this article, I will share practical and straightforward advice on how to stop (
holy wars) arguing about code quality and find measurable arguments about the necessity of refactoring, simplification, adding comments or documentation for the code. While I’m going to refer to exact commercial tools in the second half of the article, I should say that I’m not affiliated anyhow with the tool s authors. The tools are available via free community licenses as well as commercial licenses.