33
votes
Accepted
Why is cyclomatic complexity that important for a single method?
The core thing here: "brain capacity".
You see, one of the main functions of code is ... to be read.
And code can be easy to read and understand; or hard.
And having a high CC simply implies a lot ...
6
votes
Why is cyclomatic complexity that important for a single method?
C.C, like all other rules of thumb for code smells, is a heuristic. It's not a fail-safe criterion that tells you an absolute truth. If it were, the reasonable thing to do would be simply to make such ...
5
votes
Accepted
IDE Signatures & Identifying IDE Software
Is there any difference in the final application produced by all 3 IDE's, assuming that all 3 use identical code (Java)? In other words, do IDE's package the final app in different ways, or add a ...
4
votes
IDE Signatures & Identifying IDE Software
I have been working for years with teams that allow each developer to choose which IDE to use, IntelliJ, NetBeans, Eclipse.
Builds (in our case) are done by Gradle, Maven, or Ant, using Jenkins or ...
2
votes
Why is cyclomatic complexity that important for a single method?
Cyclomatic complexity of a method is related to the number of test cases required for a method. Specifically, a cyclomatic complexity of 10 means that 10 is the upper bound for test cases to have ...
2
votes
Why is cyclomatic complexity that important for a single method?
In short: it's all about readability and therefore maintainability of your code.
If you have a long, complex method with a lot of (nested) if, it becomes hard to tell what it actually does. If you ...
2
votes
What are the benefits of prefixing function parameter names with p*?
Short - This practice makes code harder to read.
Long - I will argue it is a bad practice only used to support other bad practices. Let's examine a couple reasons why using such prefixes could be ...
1
vote
Is it good practice to add comments above generated fields?
The general practice is in order :
to have meaningful name of everything so we don't need wall of text to explain what it is when it is possible (most of the time)
add comment when necessary
In the ...
1
vote
IDE Signatures & Identifying IDE Software
An IDE as said is not a compiler. A compiler is not a packaging tool for your compiled application, a packaging tool may or may not include an installer builder.
Especially in Java all 3 tend to be ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
eclipse × 58java × 26
ide × 7
git × 4
version-control × 4
maven × 4
plugins × 4
netbeans × 4
refactoring × 3
android × 3
github × 3
intellij × 3
design-patterns × 2
python × 2
unit-testing × 2
development-process × 2
tdd × 2
productivity × 2
spring × 2
visual-studio × 2
java-ee × 2
tools × 2
code-formatting × 2
jsp × 2
design × 1