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
C structure definition and usage scope
I have a legacy C function which uses a struct definition as follows
struct{
float _schedulerRate;
}sched_;
#define sched_1 sched_;
// bla bla bla
myFunc(bla bla bla) {
// Lots of bla bla bla
someVar =…

ha9u63a7
- 6,233
- 16
- 73
- 108
0
votes
1 answer
Nested Form Elements File size limit (Legacy code)
We have some really old code from which one part like 15k lines of code make a really old fashioned procedural form content menagment system.
Now here comes the stupid part. Whole code is based so it nests form elements. Wich is by definion wrong.…

Sangoku
- 1,588
- 2
- 21
- 50
0
votes
1 answer
ExtJS 3 Code Architecture : Best way to organize class files and load them dynamically
I'am modernizing a legacy web application, with its frontend based on ExtJS 3.x.
Currently, user interface depends on large file of several thousand lines, with too many nested anonymous functions, encapsulated in an global `Ext.onReady()̀ per file.…

Koryonik
- 2,728
- 3
- 22
- 27
0
votes
1 answer
IE 7 invalid table HTML not positioning properly
I am going to ask this question, just because I want to understand the problem a little better.
I am working on a page that has a bunch of legacy JSP code that generates a huge amount of HTML form, using a table to hold the visible input fields.…

codefactor
- 1,616
- 2
- 18
- 41
0
votes
0 answers
What are the "Seams" in AS3?
I'm reading "Working Effectively with Legacy Code", and was thinking about the "fancy" seams that he discusses in Chapter 4.
Since Actionscript 3 doesn't have method overloading, I was wondering what can be used as a seam in as3 besides the import…

Bob
- 1,605
- 2
- 18
- 33
0
votes
1 answer
NSIS: Should I overwrite System .dll Files?
I am currently supporting/developing a kind of Legacy System (VC++ 6.0). But that's not really the problem.
The program depends on some old system .dll files, (which I also have).
I have started building a new installer using NSIS, BUT what should I…

Christian Tang
- 1,450
- 4
- 19
- 30
0
votes
3 answers
Separating rapid development from refactoring/optimization
I'm working in a team of 2 front-end developers on a web-based late-stage startup project.
The site works quite well, but there's a lot of room for improvement code-wise, as the code is quite messy and disorganized.
I would like to clean things up…

Jonathan
- 32,202
- 38
- 137
- 208
0
votes
0 answers
Problems with Selenium WebDriver executeScript (using watir-webdriver in Ruby)
I am having trouble executing a particular javascript snippet using Watir WebDriver's browser.execute_script command:
Here is the Javascript in question:
var bodyFrame = document.getElementsByName("BodyFrame")[0];
var bodyFrameDoc =…

Jim Pedid
- 2,730
- 3
- 23
- 27
0
votes
1 answer
unbind BindAsLegacyV2Runtime
So we have an application launcher which can (should) run new apps created in clickOnce and older apps that use a remoting type of logic
When trying to run the apps I received the following message
Cannot load assembly. Error details:…

Mike
- 5,918
- 9
- 57
- 94
0
votes
1 answer
resurrecting a project written in Visual studio 6
I've been given the source code to an image classification application that was written in
visual studio 6. I've tried to see if any of the projects can be compiled. There is a project file with a .dsp extension. I'm using Visual C++ Express 2010.…

user1741137
- 4,949
- 2
- 19
- 28
0
votes
1 answer
Rails: ActiveRecord associations saving issue
Have a problem regarding saving ActiveRecord associations and need your help :)
I need to add articles merging functionality to legacy code.
It's expected to work the following way:
Merge "source" article's text to the "target" article.
Check for…

niebelung
- 127
- 8
0
votes
1 answer
Cant figure out why Classic ASP script is skipping first record in set
What I have here is part of a quite hacky Classic ASP (VBscript) script I need to pull data out so I can move it into another source. I am having trouble with it in that it appears to be skipping the first record in the piece it is pulling out. It…

Remog
- 163
- 1
- 8
0
votes
3 answers
Legacy-C C++ incorporation
I'm currently working on a performance critical application which incorporates
legacy c code (a SPICE variant).
The problem is as follows:
The creators of the legacy c code apparently believed that the use of
argument passing is one of the great…

Neville Bamshoe
- 35
- 1
- 4
0
votes
1 answer
cvSetImageData and cvCreateImage c++ equivalent interface
Is there any c++ opencv interface that can do the same operation of these two functions?
Hi, I'm actually using these two functions in this way
IplImage *image;
ARUint8 *dataPtr; // unsigned chars, in format ARGB
cv::Size size;
//do stuff
image =…

UnableToLoad
- 315
- 6
- 18
0
votes
1 answer
Determine time added working in code because of a legacy application?
How would you go about determining how much time was added due to working in legacy code as opposed to tested code for cost analysis if we really don't have a benchmark of working in non-legacy code to compare it too.

suedeuno
- 395
- 1
- 4
- 12