For me, one of the most appealing quality improvement actions still is the
deletion of code. That means, not just any code, but the code that is of no more
use. Obviously, this refers to dead code—code that is not reachable at
all and will therefore never be executed. This includes unused variables and
fields as well as methods that are never called and commented-out code
(Teamscale can tell you where these are). However,
this is only part of the truth. More importantly, it refers to all the
experimental code, the one-time migration code, the code of the previous
version, the code of the supplementary tool that no-one used anymore and so on.
In most systems we see, this accounts for a notable part of the total code
volume. Beyond that, it might be…
Weiterlesen