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.

480 questions
5
votes
11 answers

Cleaning up Legacy Code "header spaghetti"

Any recommended practices for cleaning up "header spaghetti" which is causing extremely slow compilation times (Linux/Unix)? Is there any equvalent to "#pragma once" with GCC? (found conflicting messages regarding this) Thanks.
Jonny
5
votes
2 answers

Need some advice about migrating from Motif to Gtk

I'm doing a project about migrating a legacy GUI program from Motif to Gtk. The source code is quite long (about 80k lines). Now I have two plans: Simply find the corresponding relationships bewteen the Motif functions and Gtk's. Then write some…
fabregaszy
  • 496
  • 6
  • 23
4
votes
2 answers

Is there a tool that would replace passing Excel files back and forth and merging them?

Some legacy software relies on downloading multiple Excel files, merging the contents, sending it back out, someone far away making some changes to it, and then sending the modified Excel file back, where the next day the multiple Excel files will…
Anonymous
  • 3,334
  • 3
  • 35
  • 50
4
votes
2 answers

MSXML2 and .net - Legacy code

We have a legacy code that uses MSXML2 with vb6 that works fine. Lately we converted the project to VB.NET and we are experiencing issues with the msxml when the xml getting big - basically it hung. After googling the issue we found this article…
UshaP
  • 1,271
  • 2
  • 18
  • 32
4
votes
1 answer

Dealing with legacy django project in new localized projects

I am right now in the situation to plan the internationalization of a django project that contains mainly legacy code. The old project itself has different applications which have a strong dependency to each other, so it is hard to separate them.…
NielsH
  • 697
  • 5
  • 14
4
votes
6 answers

I need an analyzing tool for C#

I have a big legacy code in C#. I need to analyze it in order to recommend the best way to build some new features in the program. Is there any tool which enables fast analyzing, and can show the class associations in a clear way which helps me get…
user771876
4
votes
3 answers

Find all javascript files not in use

I've inherited an legacy project with tons of javascript files all over the place... Is there a way to find which of those files are used inside pages? Thanks in advance.
chchrist
  • 18,854
  • 11
  • 48
  • 82
4
votes
2 answers

Is the 'synchronized' keyword in a classic enterprise application suspicious?

I am talking about classic enterprise applications. Typically hosted in some kind of application-server or container. Nothing fancy, just entities, services, Presentation/UI and relational storage. Whenever I see the synchronized keyword (either on…
jbandi
  • 17,499
  • 9
  • 69
  • 81
4
votes
2 answers

Spring : Injecting the object that launches the ApplicationContext into the ApplicationContext

I want to use Spring inside a legacy application. The core piece is a class, let's call it LegacyPlugin, that represents a sort of pluggable piece in the application. The problem is that this class is also the database connector, and is used to…
mexique1
  • 1,682
  • 11
  • 18
4
votes
1 answer

Legacy c++ code does not contain std:: prefix

I am working on compiling a very old piece of legacy code with g++ 4.4.7. All I really know about this code is that it was developed on a Irix/Sun system meaning it had a MIPS architecture. One rather odd thing I found when working with this code…
Iliketoproveit
  • 445
  • 6
  • 15
4
votes
4 answers

Unit Testing Legacy C# Code

How to write a NUnit test for a method like this. Does this method itself warrant refactoring? What is the best approach to deal with scenarios like this in leagacy code? public bool DoXYZ() { ABC abc= new…
GilliVilla
  • 4,998
  • 11
  • 55
  • 96
4
votes
1 answer

Passing scalars and array elements to a procedure expecting an array

I have some legacy Fortran 77 code which I'm trying to at least compile without warnings (without disabling warnings). There are subroutine calls that pass a scalar where subroutine expects an array, since the scalar is used as a size-1 array, this…
Jellby
  • 2,360
  • 3
  • 27
  • 56
4
votes
2 answers

What is a good java design pattern for similar objects with branching logic

I want to refactor an existing class of almost 5000 lines but I'm having difficulty with the constructor. Right now it's something like the following(methods here are in reality 10-30 blocks of code ) public MyClass( MyObject o ) { if (…
LiamRyan
  • 1,892
  • 4
  • 32
  • 61
4
votes
6 answers

Understanding a big company project in Java

what is the best way to understand a big company project in java?
Jony
  • 6,694
  • 20
  • 61
  • 71
4
votes
1 answer

Drawing Effect Sketches - any tools support it?

Could anybody tell me if there are any tools could help to draw Effect Sketches described in Michael Feathers' book "Working Effectively with Legacy Code"?? The purpose of Effect Sketches is to show the interactions between the fields and methods…
Ben Wu
  • 403
  • 1
  • 4
  • 9