DEV Community

Discussion on: Refactoring Basics

Collapse
 
mathur_anurag profile image
Anurag Mathur 

My only grouse with re-factoring large and legacy code, is that backporting becomes a big headache. I am a sucker for refactoring in newer projects, but am one of the skeptical few when the project is already RTM.

Collapse
 
arne_mertz profile image
Arne Mertz

I understand. Is backporting something you regularly see? In my experience, it is close to impossible in legacy projects, because new functionality builds on basically everything that came before. Taking a single piece of functionality back to an earlier version usually does not pay off.

Collapse
 
mathur_anurag profile image
Anurag Mathur 

Yes, Arne. We backport a lot of bug fixes from the current development branch to production branches. Many-a-times, we had to deliver an enhancement required by a customer, and we would code that on a development branch, and then backport it to production branches.