Tracking Refactorings in a Bug Database

Question :

Tracking Refactorings in a Bug Database,

Answer :

Let’s say you work someplace where every change to source code must be associated with a bug-report or feature-request, and there is no way to get that policy reformed. In such an environment, what is the best way to deal with code refactorings (that is, changes that improve the code but do not fix a bug or add a feature)?

  • Write up a bug-report and associate the refactoring with it.
  • Write up a feature-request and associate the refactoring with it.
  • Sneak in the refactorings while working on code that is associated with a bug-report/feature-request.
  • Just don’t do any refactoring.
  • Other
Read More  What is a Covered Index?

Note that all bug reports and feature descriptions will be visible to managers and customers.

,

I vote for the “sneak in refactorings” approach, which is, I believe, the way refactoring is meant to be done in the first place. It’s probably a bad idea to refactor just for the sake of “cleaning up the code.” This means that you’re making changes for no real reason. Refactoring is, by definition, modifying the without the intent of fixing bugs or adding features. If you’re following the KISS principle, any new feature is going to need at least some refactoring because you’re not really thinking about how to make the most extensible system possible the first time around.

Read More  How can I empty the recycle bin for all users from a Windows service application in c#

That’s the answer Tracking Refactorings in a Bug Database, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you