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
351 votes
20 answers
80k views

How should I behave as a developer in a project that's headed for failure?

I am a developer in a 5-member team and I believe our project is headed for disaster. I'll describe why in a moment, but my question is: how should I behave? The deadline is in 1.5 months, and I ...
74 votes
10 answers
8k views

Does it make sense to write tests for legacy code when there is no time for a complete refactoring?

I usually try to follow the advice of the book Working Effectively with Legacy Code. I break dependencies, move parts of the code to @VisibleForTesting public static methods and to new classes to make ...
is4's user avatar
  • 779
9 votes
4 answers
2k views

I have 200k lines of poorly designed code, will units tests or integration tests be more valuable? [duplicate]

I've inherited a lot of poorly designed code; the code has no tests. I am putting tests in place before I attempt a major refactor, but I have run into a problem with my unit tests. The problem is, I ...
Buttons840's user avatar
  • 1,876
28 votes
2 answers
3k views

Is there a named anti pattern for historically grown software? [closed]

Is there an anti pattern that describes a historically grown software system where multiple developers just added new features to the system but no one really kept an eye on the overall architecture ...
Jens's user avatar
  • 391
89 votes
10 answers
11k views

Estimating time costs in legacy codebase

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
19 votes
5 answers
15k views

How to avoid excessive method overloading?

We have quite a lot of places in the source code of our application , where one class has many methods with same names and different parameters. Those methods always have all the parameters of a '...
Ytus's user avatar
  • 301
11 votes
7 answers
4k views

How to deal with a large codebase with no requirements and the responsible person leaving the company soon [duplicate]

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
  • 231
5 votes
9 answers
647 views

Have you worked with poorly designed application? [closed]

I have been asked to work in a Java web application that is very very poorly designed. In the name of "making this easy", they have come up with their own "framework" to make things extremely ...
Vinoth Kumar C M's user avatar
3 votes
3 answers
3k views

Effective way to estimate dead code removal?

I've been working in an application with about 100k LOCs and basically We have been reworking features to comply with a new architecture based on a new technology stack. This work is almost finished ...
ElderMael's user avatar
  • 260
2 votes
3 answers
2k views

Refactoring web pages with user controls

Is it good design to use many user controls to help refactor a web application? In my case, it's a VB.NET Webforms ASP.NET website. All our pages are organized into sections that, while related and ...
Jeremy K's user avatar
  • 121
1 vote
3 answers
1k views

Legacy code: what to do in regards to maintenance and moving forward? [duplicate]

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
0 votes
3 answers
322 views

Follow Up: Legacy code maintenance and moving forward (implementing previous answers)

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
-3 votes
1 answer
483 views

How to deal with code impossible to change [duplicate]

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
  • 827