Skip to main content
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 ...
GhostCat's user avatar
  • 567
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 ...
Kilian Foth's user avatar
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 ...
candied_orange's user avatar
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 ...
joshp's user avatar
  • 3,501
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 ...
Thomas Owens's user avatar
  • 84.2k
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 ...
André Stannek's user avatar
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 ...
jakubiszon's user avatar
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 ...
Walfrat's user avatar
  • 3,536
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 ...
jwenting's user avatar
  • 10.1k

Only top scored, non community-wiki answers of a minimum length are eligible