Dead code evilness
best practices code javaWorking on several projects at the same time is really exciting, you have to administer your time-sheet between tasks and work with different people. Hence the diversity, different technologies and environments.
But there is something common between all those projects, dead code. Dead code can be classified in some few categories:
If it's dead code, I mean, it's already dead, it should be removed for the sake of other developers. If you are working with Revision Control Systems (and I don't know why you shouldn't), the commented code is not longer required, you can revert or reapply a patch whenever you want.
In summary, get rid of your dead code, kill it, burn it, bury it.
But there is something common between all those projects, dead code. Dead code can be classified in some few categories:
- Legacy code.
- Refactoring-result code.
- Patches.
- What does the '0' mean?
- Why is the first line still present there as commented code?
- Is it really important to have it there?
- Should I remove it?
- What about the other parameters?
- Why it was commented in first place?
If it's dead code, I mean, it's already dead, it should be removed for the sake of other developers. If you are working with Revision Control Systems (and I don't know why you shouldn't), the commented code is not longer required, you can revert or reapply a patch whenever you want.
In summary, get rid of your dead code, kill it, burn it, bury it.