News for hackers. Stuff that matters.
Re:How to Improve a Legacy Codebase by jacquesm on Tuesday May 30, 2017 @10:29AM (#14445610)
The rewrite only works - in my experience, YMMV - if the team is already 100% familiar with the codebase as it is and the task is a relatively simple one and there is a nice set of tests and docs to go with the whole package.

Outside that boundary you're set up for failure.

Re:How to Improve a Legacy Codebase by ebiester on Tuesday May 30, 2017 @11:10AM (#14445892)
The one caveat is that there are times when the business realizes that their old workflows and features aren't what they now need. The rewrite becomes a new project competing with the old rather than a functional rewrite.

This is also fraught with peril. However, it is a different set of problems. In an ideal world, you have engineers who can make reasoned decisions.

However, if the company culture allowed one application to devolve into chaos, what will make the second application better?

Re:How to Improve a Legacy Codebase by jacquesm on Tuesday May 30, 2017 @11:20AM (#14445963)
You raise an excellent point and usually in tandem we educate management (not the tech people) on how they failed in their oversight and guidance role.

The real problem of course is to let things slide this far in the first place. But that's an entirely different subject, for sure the two go hand-in-hand and often what you touch on is the major reason the original talent has long ago left the company. By the time we get called in it is 11:58 or thereabouts.

Re:How to Improve a Legacy Codebase by typednothing on Tuesday May 30, 2017 @05:51PM (#14448836)
At some point they'll junk the in-house program and buy something off the shelf.
Re:How to Improve a Legacy Codebase by jacquesm on Wednesday May 31, 2017 @04:53AM (#14451161)
Assuming something off the shelf is available, yes. In fact, if something off the shelf is available we'll be happy to make that recommendation, too many companies that aren't software houses suddenly feel that they need to write everything from the ground up. And even companies that are software houses suffer from NIH more often than not. (Though, I have to say that in my experience in the last couple of years or so this is improving, it used to be that every company had their own in-house developed framework but now we see more and more standardization.)
Re:How to Improve a Legacy Codebase by humanrebar on Tuesday May 30, 2017 @10:38AM (#14445666)
I agree about the YMMV part. The same caveats, small scope and developers with expertise, apply in the gradual migration plans as well in my experience. It's clearly true in the extreme cases (python2 -> python3) and I've seen the same patterns happen inside companies as well.