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.
Questions tagged [legacy-code]
480 questions
0
votes
0 answers
In PhpStorm when using Request::createFromGlobals - warning says "field x not found in static"
This is happening in a legacy PHP application that was not built using the Symfony framework, only parts of Http-Foundation are used. So nothing is creating the Request for us, instead we create it using GLOBALS in some setup code. This was done as…

Sophia
- 1
- 1
0
votes
1 answer
Search a codebase for references to table names
I have a directory full of legacy code from a VB6 application.
I have been asked to provide a list of all the tables that this application uses, so we can assign a special SQL Server username to it.
What is the best way to scan a codebase for…

JosephStyons
- 57,317
- 63
- 160
- 234
0
votes
1 answer
Delphi DualListBox module - where to find?
I am supporting some legacy Delphi project. This project is divided into modules that stored in DLLs.
I need to compile one of the modules (last compiled in 2007). This module uses module DualListBox and has a variable of type TDualListBox:
uses…

Ilya Skaba
- 55
- 1
- 9
0
votes
2 answers
Moved classes from one library to another=> Client app does not recognize the change without recompiling
We have a huge set of apps that use a library called Auth.dll. This library is allways is installed in the GAC of our servers.
Now we are refactoring it, so we have split Auth.dll in two new ones
OAuth.dll
LegacyAuth.dll
When we deploy the…

X.Otano
- 2,079
- 1
- 22
- 40
0
votes
2 answers
Compiling legacy VB6 components - make error
OK, so I have the joyous task of writing a command-line build for a bunch of legacy VB6 ActiveX DLLs (so that we can integrate this into our TFS builds).
I've installed a copy of VB6 on our build server, and I'm trying, as a first step, to get one…

Keith Williams
- 2,257
- 3
- 19
- 29
0
votes
1 answer
Migrate Visual Studio .NET 2003 to 2008
I have a legacy solution made in Visual Studio .NET 2003 and I need to migrate it to 2008 so what are the effective steps to do it? Do you know any free aid tools to help making UML diagrams such as activity, collaboration, sequence, etc...? Does…

Willy
- 9,848
- 22
- 141
- 284
0
votes
2 answers
Java String::substring changes in the past
I have to do bugfixes in a very old code (pre 2005) in which the below signature of String::substring is used.
public String substring(int beginIndex, int endIndex)
Now it contains every character from beginIndex till endIndex-1. Is it possible…

Pajti
- 21
- 2
0
votes
1 answer
Practical usecase of class Stack's push method returning its argument
1) class Stack: public E push(E item)
class Stack - its push method just returns its argument (unlike newer Deque, whose respective push method is now void):
public E push(E item)
Can you provide any useful real-life / production example of using…

DiligentLearner
- 139
- 6
0
votes
1 answer
In Windows 10, how can I avoid having the touch keyboard covering up inputs?
We are maintaining a legacy application that was written in a combination of C, C++, and C++/CLI that is deployed at tablet PC running Windows 10. Re-writing the application is not an option, but the users are complaining about the touch keyboard…

rjzii
- 14,236
- 12
- 79
- 119
0
votes
1 answer
Weblogic 10 embeddable EJB container
My task is to come with automated integration tests for a legacy EJB 2.1 code base that is running on Weblogic 10.1 server. Does anybody know if there is an emeddable container I can use in JUnit? I can see plenty of examples for Weblogic 12 , but…

JavaHead
- 635
- 1
- 6
- 21
0
votes
2 answers
Prevent session variables from being overwritten in new tabs
I've inherited an old ASP.Net Webforms application that makes heavy use of Session variables to store the database record IDs of user-submitted applications. This has caused some severe issues where users open up forms for different applications in…

MyNameIsKo
- 2,171
- 1
- 15
- 24
0
votes
1 answer
PHP/mysql: Is changing (SELECT, {resource}) to ({resource}, SELECT) a viable temporary patch for mysql_* to mysqli_*?
On first inspection of the differences in application of the mysql*() and mysqli*() families of functions, it appears to me that
$seta = mysql_query("SELECT * FROM table WHERE field = $Filter", $database);
Can be rapidly replaced with:
$seta =…

Sandor Dosa
- 133
- 1
- 9
0
votes
0 answers
Finding controls by name in .NET 1.1 forms
I'm working on some legacy WindowsForms application written in VB.NET using the framework 1.1 and I'm trying to retrieve a control from the ControlCollection using its name instead of his index.
In the following versions of the framework I can use…

Soel
- 343
- 2
- 8
0
votes
1 answer
Matlab legacy_code Tool - Writing a wrapper functio to catch an array
currently I'm trying to use a C/C++ Code based Library in Matlab/Simulink by means of the Matlab legacy_code tool. I am very new to this, please have some patience with me.
I stumbled upon the problem, that I got class members which return an…

RaEyE
- 11
- 4
0
votes
2 answers
How do I create two Git branches on the same repository from two different sources?
If this is a stupid question please kick me, but I need to crowdsource experience.
I have code on two different servers - that are basically production and dev sources of the same application, but are not exactly the same and don't have the same…

Francois
- 120
- 8