3 ms·
We have just such an app. Rails 2.3.8, (won't even upgrade to .9 cleanly) EOL Debian Lenny. No tests. At all. Started to do this. Figured out how to get it unde
by vinceguidry 12y ago
We have just such an app. Rails 2.3.8, (won't even upgrade to .9 cleanly) EOL Debian Lenny. No tests. At all. Started to do this. Figured out how to get it under test, when bugs are fixed they get tested. Every once in awhile I'd grab the most important piece of the project and put it under test.
Gave up after awhile. It's a poor use of time. The app's been maintained for years, its failure modes are well-understood. It's stable. There are other parts of the infrastructure that need attention.
I managed to convince my superiors that now's the time to replace it. Rather than devote countless hours to this time sink, I decided to stop adding to the legacy app, cordoned it off and now treat it like a Superfund site. I replaced my work machine a while back, I keep the old machine around because it's the only thing I can work on it with. I feel like I'm putting an environmental suit and gloves on every time I open it up. All new functionality is built outside the app and interacts with it as if it were a black box.
We now have an agenda and a plan to replace it. And the projects I'm working on now will bring a lot more value and capability. We even got them to expand my department.
What I'm saying is that organizational problems shouldn't be treated like technical problems. A large, untested, legacy application that a lot of business is riding on is an organizational problem and not a technical one. They decided not to devote the resources to properly maintain it, you need to put forth the case that it's a serious problem and that it needs more than your efforts to fix. That's how organizational problems are solved, one person takes the initiative and gets people behind him and makes it happen. Not by being a cowboy.
Trying to take code that was written in one era, and bring it into another era is a huge waste of time and resources. Figure out what you need to really solve the problem and ask for the resources to do so, after you've gotten your ducks in a row and at least made efforts to do it other ways. Your career and your sanity will be better off for it.