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
1 answer
Access C# static class from a C++ DLL
I've been tasked with writing a new interface to a legacy C++ DLL I don't have the source code for, which - for reasons beyond me - accesses a global class in the legacy application directly.
From the application, it's something like:
extern…
0
votes
1 answer
I am updating some legacy SQL code and getting an error when updating the *= operator to Left Outer Join
I'm getting an error:
MSG 4145: An expression of non-boolean type specified in a context where a condition is expected, near 'Left'.
Thoughts?
USE [DatabaseName]
GO
/****** Object: StoredProcedure [dbo].[spFilePlanNavigate] Script Date:…

Kevin
- 13
- 2
0
votes
1 answer
Using new features while supporting older iOS versions
I am developing an app using SDK 8.1, Apple LLVM 6.0 and Xcode 6.1.1. The deployment target is 6.0. I'm using NSOperationQueue and I want to use QoS whenever it's available.
The code I'm using is:
if ([self.operationQueue…

fpg1503
- 7,492
- 6
- 29
- 49
0
votes
1 answer
Datatable 1.8.0 adding server parameter doesnt work
I am working on a legacy code. Right we are using DataTable 1.8.0. It seems like this version is not supporting aoServerParams. I have also tried
"fnServerData": function ( sSource, aoData, fnCallback ) {
aoData.push( { "name":…

Ahmad.Masood
- 1,289
- 3
- 21
- 40
0
votes
2 answers
Breaking legacy singletons
We have packaged all our legacy code into a library and the new version of the code calls the legacy code as and when required; Though this approach is good, currently we are in a spot of bother as part of the legacy code has thread-unsafe…

Venkatesh Laguduva
- 13,448
- 6
- 33
- 45
0
votes
0 answers
Bundler won't install libxml-ruby (2.2.2) Rails
I'm trying to get set up with a somewhat outdated Rails app so I can try and update it a little but I can't seem to get bundle install working. It keeps telling me:
An error occurred while installing libxml-ruby (2.2.2), and Bundler cannot…

camillavk
- 521
- 5
- 20
0
votes
1 answer
Get file descriptor from filename in Perl
I am using a legacy lib in Perl which is leaking file descriptors (I don't have access to the C source)
I know the name of the file the code is opening, but I don't know the file descriptor. Is there any way I can determine the file descriptor…

OneSolitaryNoob
- 5,423
- 3
- 25
- 43
0
votes
1 answer
Headers already sent php - dealing with legacy code
I have seen this question posted a thousand times, but what I haven't seen is an answer to the following situation. Maybe one already exists?
Somethings I have made sure of:
There are NO spaces around .
There are no echo…

SeekingTruth
- 1,044
- 2
- 15
- 23
0
votes
1 answer
Aebacus Controls Negative Number Issue
I am working to flush out some defects from an older program and I'm running into an issue with negative numbers in aebacus textboxes.
Basically, whenever a negative number (i.e. -1) is entered into a textbox, on focus lost the textbox shows the…

Zach Leighton
- 1,939
- 14
- 24
0
votes
0 answers
VS2005 and Borland C++ Builder Integration
How can I import a VS2005 DLL in Borland C++ Builder?
We have an VS2005 DLL with many legacy code that will not be easily compiled in C++ Builder, and we have a client using Borland C++.
There is any way to build this DLL using OMF format?

Victor
- 8,309
- 14
- 80
- 129
0
votes
3 answers
What does it mean to "port" legacy code to PHP?
I have a open-book test this week and I've been notified that the test will be an exercise whereby a chunk of legacy code is provided and a requirement to 'port' the code.
I understand what a open-book test is and the requirement of it (to test your…
user275074
0
votes
0 answers
legacy django code: request first parameter in all methods
I need to deal with legacy django code.
Nearly all methods have request as first parameter. Not only views, that's ok there.
The request is passed along only to get request.user and to permission checks against the current active user.
I don't see a…

guettli
- 25,042
- 81
- 346
- 663
0
votes
3 answers
Project Architecture For Enhancing Legacy project
I am working on legacy project. Now the situation demands project to be divided
into parts. What strategy I should follow to do this task.
Description:
The legacy project (A) is fully functional web application with almost well
defined layers. But…

vijay.shad
- 2,444
- 6
- 27
- 33
0
votes
1 answer
Microsoft Fakes: Trying to shim a class but dependencies are still there
Ok, so here's the deal: I have a complex, heavily dependent class LegacyClass that I'd like to shim so that I get rid of all its dependencies while unit testing other parts of the code base. That class creates dependencies already inside its default…

Seppo
- 15
- 3
0
votes
1 answer
Tool to generate android app activity flow from source code
I'm new in Android application project. It's quite complicated application with lots of activities. First thing that I'd like to know is activity flow. I think that proper way of building any application is to create activity flow BEFORE starting…

Marian Paździoch
- 8,813
- 10
- 58
- 103