yegor256 / names-vs-complexity

How compound variable names affect complexity of Java methods

Home Page:https://www.yegor256.com/2015/01/12/compound-name-is-code-smell.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latex License

Hypothesis: Java methods that contain variables with compound names tend to have larger cyclomatic complexity.

Method:

  • We take many big and popular Java repositories from GitHub
  • For each Java method we calculate: CC and count of compounds vars
  • We draw a graph: x is CC, y is the count
  • We make a conclusion about a correlation between them two

The results of this research will be published.

About

How compound variable names affect complexity of Java methods

https://www.yegor256.com/2015/01/12/compound-name-is-code-smell.html


Languages

Language:TeX 88.1%Language:Python 5.5%Language:Ruby 3.0%Language:Makefile 1.8%Language:Java 1.6%