Skip to main content

Questions tagged [legacy-code]

Originally legacy code meant code 'inherited' from authors or from a previous program/system version. Since Michael Feathers published his "Working Effectively with Legacy Code" book, new definition came to be, where code without tests is legacy code.

Filter by
Sorted by
Tagged with
2 votes
5 answers
751 views

In a Java EE legacy project, almost all the DAO and Service classes are written in a a way that DAO level does not catch any exception and instead the service classes catch(Exeption e) in all of their ...
Rui's user avatar
  • 1,935
5 votes
2 answers
2k views

Recently I've come to discover that I've inherited one of the internal auxilliary programs used. I've made a few minor fixes and features to improve it in the past, but now I've been given a major ...
rdi_pck's user avatar
  • 61
9 votes
4 answers
4k views

I am working on a huge code base (more than a million lines of code with a sophisticated architecture) written in C++ over the span of a couple of decades. The task on which I'm working at this point ...
Dude's user avatar
  • 209
2 votes
1 answer
393 views

I have inherited a large C++ codebase implementing various Windows desktop applications, services and libraries using Windows MFC. There are no automated tests. We need to decouple the UI and retain a ...
DLT's user avatar
  • 201
3 votes
3 answers
567 views

I have been assigned a ticket to update all node packages and dependencies in a react project to the latest possible version without breaking the application monolith as it is now; no further ...
David Gamboa's user avatar
-2 votes
3 answers
194 views

We all know Joel Spolsky's famous article to never rewrite working code. How about if we don't consider overall program but a module within? Module can be e.g.: payment handling microservice in e-...
Maciej Pszczolinski's user avatar
0 votes
2 answers
1k views

I've been trying to refactor some existing code which is in essence a giant nested procedural call inside what should otherwise be an object oriented architecture. The entry point to the relevant code ...
User's user avatar
  • 23
0 votes
1 answer
140 views

I have to replace an old application (Database, C++ UI) which is mainly for data administration, with on a new application (Same Database, Spring-Boot, Angular). We want to document how the ...
Tobias Otto's user avatar
1 vote
0 answers
157 views

We are consolidating a number of disparate monoliths, redesigning and implementing a greenfield suite of microservices and micro-frontends. The stack is all new, the design is all new - it couldn't ...
Lee Alderdice's user avatar
99 votes
9 answers
20k views

I have been in two software product houses for three years in a row. The first is a small company maintaining a fairly small management system with a monolithic legacy code base (almost twenty years). ...
Rui's user avatar
  • 1,935
2 votes
2 answers
1k views

I'm working on a larger, older project. Our code is littered with classical singletons, i.e. classes like public class ABCService { private static final instance = new ABCService(); public ...
Johannes Hahn's user avatar
-1 votes
1 answer
780 views

I am building the initial set of unit tests for my team's legacy API client system. We have been writing integration tests, but have no unit tests. It's a Sinatra server that accepts requests from our ...
Eric's user avatar
  • 107
1 vote
3 answers
561 views

When we work with legacy code and need to do changes, we first write tests on the current behavior. That way we can implement new changes with confidence. We can even refactor the code. Legacy code is ...
JayZ's user avatar
  • 837
-3 votes
1 answer
543 views

This question maybe borderline with the workplace. Also I apologize if it sounds more like a rant than anything. We have a legacy code base (million of line of code). No evolution is ever possible, ...
JayZ's user avatar
  • 837
-1 votes
2 answers
240 views

Let's assume that you are trying to refactor a legacy code to make it easier to understand and more testable, how can you do that? In the book "Working with Legacy Code", a characterization/...
A.Shoman's user avatar
  • 117
0 votes
2 answers
149 views

Given the following class in a Legacy code base without any UT's. So any refactoring done should be done on the smallest possible scale, just in order to be able to write UT's. public class Person { ...
Complexity's user avatar
-3 votes
1 answer
124 views

I have been given a task to take on a legacy application (which has a very poor API in terms of user experience, is undocumented largely, and performs slowly) and build a new API and SDK to improve ...
Mojo's user avatar
  • 171
4 votes
4 answers
2k views

I have a huge GIS related project with multiple parts which was originally developed for metric usage (meters). Now I need to make a comprehensive audit of the system to come up with a plan to let it ...
eth4io's user avatar
  • 165
3 votes
3 answers
181 views

In a legacy Java project, when adding a new feature - an existing email field can be editable or not editable on base of its parent system, a developer added a new feature by adding a new class, which ...
Rui's user avatar
  • 1,935
12 votes
6 answers
4k views

Nowadays everybody wants to be agile. In every team I worked with, the shape of agile was different. Some things are common - like daily stand-ups or planning, but other parts vary significantly. In ...
Arkadiusz Kałkus's user avatar
8 votes
3 answers
3k views

Forward I've read a lot of things before asking this question, including many relevant questions right here on SE: (Software Engineering SE) Writing tests for code whose purpose I don't understand (...
user avatar
0 votes
2 answers
149 views

I am working on multiple projects as a developer and second line support, It happens that I fix a bug on one project, test and deploy the change then leave the project for months and return back for ...
osama yaccoub's user avatar
-2 votes
1 answer
280 views

I have joined a team in company and this team owns few services, which are used widely by many other user facing internal/external UI apps and other internal apis. My manager gave me rough idea that ...
PKV's user avatar
  • 181
3 votes
1 answer
397 views

I am quite new to DDD, but I am currently working on a system which has a payroll element to it. I have a requirement to send payslips to an external system when they are created. Currently the ...
Steven Brookes's user avatar
2 votes
0 answers
239 views

When I first a codebase, I frequently take notes about it, as this SO answer suggests. If some code chunk is small enough, I copy-paste to Word, print it out, and make hand-written annotation. If the ...
Heisenberg's user avatar
3 votes
2 answers
348 views

I inherited 1 million lines of C++ legacy code. Throughout the code variables like bCPCHAR bPCHAR, bCPDOUBLE and bPINT are used. They are defined like this: bCPCHAR: const char * bPCHAR: char * ...
Dominic Hofer's user avatar
12 votes
7 answers
4k views

i am faced with the following scenario and i wonder if you guys have some tips for me on how to approach this. One of my colleagues is going to leave the company in a few month and i am ordered to ...
Peter's user avatar
  • 241
0 votes
1 answer
228 views

I am migrating a legacy system from Oracle Form to Web Application. The migration is conducted with code study and interview. As the requirement is to migrate the existing system to Web application ...
Ben Cheng's user avatar
  • 349
5 votes
2 answers
1k views

Edit: Assume that I will stay on this project until "the end". The Problem I'm currently working on a legacy interesting Java project(s).  A full rewrite is currently out of the question, as I am ...
Nathan's user avatar
  • 69
0 votes
3 answers
338 views

Overview This is a follow up to my previous question that was flagged as a duplicate, and I do not know what would work better as the title. Here is a link to the previous question: Legacy code: ...
eparham7861's user avatar
1 vote
3 answers
1k views

I am currently working on an application with legacy code that was built using proof of concepts (POCs). These POCs became the finished production-ready code, there were no tests, and the classes have ...
eparham7861's user avatar
2 votes
2 answers
164 views

I have a legacy system I need to plan a migration for. It's mainly developed in Ingres+4GL (an old Ingres based form system). I have the following information: Data Structures (data base relations ...
Pablo Santa Cruz's user avatar
5 votes
8 answers
9k views

I have to refactor a "for" loop which iterates over an array and does two independent things with the array element. For example: doThisOrOtherStuff(array) { for(int i=0; i<array.length; i++) { ...
Milan Tenk's user avatar
4 votes
2 answers
3k views

I've been tasked with studying a Python code, which runs on an orchestrator, which schedule the launch of the code in correspondence of some events. The code imports some modules, and it's basically ...
DeltaIV's user avatar
  • 231
2 votes
1 answer
215 views

Background I joined a company as a solutions architect less than a year ago, with a main task of consolidating, and modernizing legacy code resulting from 90+ company acquisitions over the past 20+ ...
A.Rashad's user avatar
  • 604
3 votes
4 answers
1k views

I understand there are many questions in this site revolving around the same concept, but I could not get a precise answer for my case. Problem I am handling an ERP System, with code base in both: ...
A.Rashad's user avatar
  • 604
7 votes
4 answers
4k views

I am writing a software documentation and I need a antonym to "legacy code". Is there any established word for the antonym to "legacy code"? I'll need this antonym to describe that code which was ...
eDeviser's user avatar
  • 189
-1 votes
2 answers
198 views

If I have software written in C for 32 bit system, what changes do I need to make in it to run it on a 64 bit system?
Waseem Abbas's user avatar
0 votes
1 answer
398 views

Currently I am working on a health related application which was being developed for 5 years and lot of developers have contributed in it. The application is quite complex and highly used by lot of ...
Rohit Gupta's user avatar
4 votes
3 answers
15k views

I'm refactoring a legacy codebase. I have 4 very similar objects that I decided would be a good target for becoming polymorphic, so I moved all the common code to a base class and added an interface. ...
BgrWorker's user avatar
  • 1,704
4 votes
2 answers
202 views

Our organization codebase is used by various teams. Over the years, the code has evolved and grown without much usage of interfaces. We would like to change that, to reduce chance of breaking changes. ...
Ayal's user avatar
  • 51
0 votes
3 answers
545 views

I am regularly given code with bugs in it and told to fix the bugs without introducing any more. My approach is usually as follows: Identify the bug's issue, e.g. method is returning an empty list and ...
TheCoder's user avatar
  • 179
89 votes
10 answers
11k views

Recently I started working on a project where a very old monolithic application is being migrated into microservice-based architecture. The legacy codebase is very messy ('spaghetti code') and often ...
JuniorDev's user avatar
  • 833
28 votes
8 answers
5k views

We have here a large legacy code base with bad code you can't imagine. We defined now some quality standards and want to get those fulfilled in either completely new codebase, but also if you touch ...
keiki's user avatar
  • 481
4 votes
2 answers
341 views

I have the following global statement calls sprinkled throughout my PHP legacy codebase: $jobnumber = db_quick($sql); db_query($sql); That is, those function calls have been initialized in the global ...
Dennis's user avatar
  • 8,267
0 votes
1 answer
715 views

I'm working on medium sized ASP.NET MVC 4 web app, that is about 2.5 years old. Around 25-30k lines of code. The project has never followed any of the good .NET design practices. It is a very tightly ...
Grentley's user avatar
  • 125
3 votes
1 answer
297 views

I'm currently reading "Working Effectively with Legacy Code" by Michael Feathers. So far, a lot of techniques the book mentions, start with a problem similar to: "it's really difficult / it would ...
Denis Kosovich's user avatar
6 votes
3 answers
757 views

I am working on a project which is a rewrite of an existing legacy software. The legacy software primarily consists of CRUD operations (create, read, update, delete) on an SQL database. Despite the ...
magnus's user avatar
  • 674
23 votes
8 answers
3k views

I'm working in the development of an old project written in Java. We have more than 10 million LOC and, even worse, more than 4000 functional tests. The tests, scheduled by Hudson, are failing like ...
Hector Brosuli's user avatar
5 votes
2 answers
203 views

I don't believe there are any performance statistics kept for the application I'm being asked to replace, and don't want to ask the individuals doing the work to manually record things like how long ...
NoSmallPlansHere's user avatar