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
5 answers
Understanding a software system
I recently became part of a complex embedded project team for which I will be developing a part. For the part which is my responsibility there is only old code and not much documentation.
I am keen to make a good start but shyness and fear of…

michelle
- 19
- 2
0
votes
0 answers
I can't guess legacy code's purpose (Neo4j, cypher query)
I'm new programming with Neo4j, so I don't know enough from it's cypher language yet to solve without help an annoying bug from legacy and undocumented code.
My main problem is that I can't guess the purpose of the following query... :s .
That's the…

castarco
- 1,368
- 2
- 17
- 33
0
votes
1 answer
.Net Add a table to legacy code
I have a legacy code base written in .NET
It has a web.config with various connection strings defined to an oracle database. I have altered its QA environment connection string to point to my own oracle database located in a VM. (The schema of both…

Dhruv Kapur
- 726
- 1
- 8
- 24
0
votes
3 answers
Fixing legacy code without breaking everything
I have some code like this :
somefunc($row['some_key']);
Sometimes, $row might not have 'some_key' which logs an Undefined index warning.
How do you fix this warning without changing the current behavior of the program ?
I know I need to fix…

Nico
- 6,395
- 4
- 25
- 34
0
votes
3 answers
Build "exit" page using Classic ASP avoiding major Cross Site Scripting pitfalls
I'm working on updating a classic ASP web page used by a number of sub-sites maintained at the company I work for.
The purpose of the page is to notify the user that they are leaving "our" site and going to another site. It's basically a disclaimer,…

Nip
- 712
- 1
- 6
- 15
0
votes
1 answer
Is my code running jQuery?
The codebase I've inherited is full of $() methods and $.() methods.
eg.
$("#buttona").show();
$("#buttonb").show();
or
bComment = $.trim($("#aComment" + i).val().replace(/"/g, "'").replace(/\,/g, " ").replace(/&/g, "&").replace(/</g,…

dwjohnston
- 11,163
- 32
- 99
- 194
0
votes
1 answer
Legacy code: Code First one to one or zero relationship
I have following legacy code fragment that I can't change:
public class EntityA
{
int SeqId { get; set; } //Not part of the key
[Association("EntityB", "Seq_ID", "Seq_ID")]
public EntityB EntityB { get; set; }
}
public class EntityB
{
…

StefanG
- 1,234
- 2
- 22
- 46
0
votes
1 answer
What are the effects of using VS2005 to migrate from .NET 1.1
I'm working on some legacy code for a client, involving Microsoft Content Management System (MCMS).
Currently, everything is local, the code, MCMS, SQLServer, and IIS (5.x).
I copied the project folder, and then opened the new copied solution in…

andy
- 8,775
- 13
- 77
- 122
0
votes
2 answers
Catching all inline css and its html tag
I am refactoring legacy code of MVC framework html views. Many, many, many css styles are applied inline, which is bad practice.
Is there a tool to generate a css file from all the inline styles of an html file ?

qdelettre
- 1,873
- 5
- 25
- 36
0
votes
1 answer
unexpected T_FUNCTION, expecting ')'
I'm using AppServ 2.6.0 / Apache 2.2.8 / PHP 6.0.0-dev, and I'm getting an error with the following function.
if(count($ex) > 0) {
foreach($ex as $k => $v) {
echo "".strip_tags($k)."

danks
- 103
- 1
- 10
0
votes
1 answer
C++11 on Visual Studio 2005
I'm handling with some multiplatform legacy code, and there is a requirement that should compile on Visual Studio 2005.
VS 2005 supports C++11?

Victor
- 8,309
- 14
- 80
- 129
0
votes
3 answers
How to add a new feature to an existing component?
We have this legacy image viewer component in our project that's working fine but it's source is a real mess. I have to add a new feature to this component so that people can add annotation to images using a light pen which is not a complicated task…

Beatles1692
- 5,214
- 34
- 65
0
votes
1 answer
Progress codebase analysis using Moose
Has anyone used Moose to deal with a large legacy Progress ABL/4GL codebase, and if yes, what are the caveats, experiences, lessons learned you can share about this?

p.marino
- 6,244
- 3
- 25
- 36
0
votes
1 answer
unit testing a TabbedPropertySection
I am trying to unit test a class which extends org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
It is a GUI on top of a heap of legacy code. The AbstractPropertySection class have a
private TabbedPropertySheetPage…

Árpád Magosányi
- 1,394
- 2
- 19
- 35
0
votes
1 answer
Ruby on Rails: What to do with legacy code?
I've a portal project built in Rails 1.2.3. I've finished it at end of 2006.
The project are using the following plug-ins:
acts_as_attachment
acts_as_ferret
betternestedset
simple_http_auth
I know all plug-ins (or dependencies) was changed today, or…

Daniel Koch
- 277
- 6
- 14