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
0
votes
3 answers

need some simple help understanding a bit of pre-PHP5 code

I was turned on to nstrees from another question, and have been working through the script. It was last updated in 2005 and relied on some stuff that has since apparently been deprecated like HTTP_POST_VARS which I wasn't immediately familiar with…
Drew
  • 6,208
  • 10
  • 45
  • 68
0
votes
2 answers

How to rewrite legacy join syntax *= in SQL Server

I am trying to rewrite legacy join syntax with new standards. SELECT count(*) FROM es_dbo.tablTypes t ,es_dbo.tablReg r ,es_dbo.tabl_PRGandCLI p WHERE t.ClientType *= r.ClientType AND p.ID IN ( SELECT DISTINCT ClientID …
Shantanu Gupta
  • 20,688
  • 54
  • 182
  • 286
0
votes
1 answer

Redirecting the input from file with multiple Scanner objects for Stdin

I am current using a small command line interface for one of our tools. I would like to to provided input from a file or bash script file to automate the input. Problem is the CLI uses multiple Scanner object to read input from stdin. There is not a…
SGM1
  • 968
  • 2
  • 12
  • 23
0
votes
1 answer

Does Doctrine support composite entities?

In my legacy code I have this class . . . class Motor { //db table motor_part_sizes //physical dimensions relating to various screw sizes private $a; private $b; private $c; //db table motor_part_length //also dimensions…
Dennis
  • 7,907
  • 11
  • 65
  • 115
0
votes
1 answer

Nginx configuration for two versions of PHP

I'm trying to set up an nginx environment where legacy code and new MVC-style code can co-exist, so that I can gradually refactor it page by page. The legacy code needs an older version of PHP (it runs best on 5.3, but I had trouble compiling that,…
OsakaWebbie
  • 645
  • 1
  • 7
  • 21
0
votes
1 answer

Creating JUnit test for legacy code

I am a QA personnel of a bank in my country. We have a lot of applications with legacy code that are really old and haven't been tested with white box process. Here, we also regularly got projects and changes to those code as requested by the…
Reinaldo
  • 44
  • 5
0
votes
1 answer

WCF: wrapping legacy API question

I have to wrap legacy .net assembly API (set of classes and interfaces) with WCF service. Service is visioned as proxy that delegates calls to existing classes with virtually no additional work. So I addded [ServiceContract] interface that exposes…
Andrew Florko
  • 7,672
  • 10
  • 60
  • 107
0
votes
1 answer

Still undecided how to handle errors in Swift 2

I have a maybe silly question. I coming from programming languages with exception handling, e.g. C++ and C#. At the time of Swift 1 I was confronted with the Cocoa Style with error objects (which somewhat reminded me at the ErrorObject in Microsoft…
ChaosSpeeder
  • 3,468
  • 5
  • 30
  • 38
0
votes
1 answer

C# fine-grained permissions: multiple internal systems, intranet scenario

I have the following scenario: Multiple users (< 100) User accounts in AD (under different groups) Every group in AD corresponds to a internal department; each department have at least one supervisor (One may say) We have cross-supervisioning…
casals
  • 343
  • 4
  • 10
0
votes
1 answer

AngularJS legacy integration and content that contains asynchronously changing id doesn't trigger watcher

I have a legacy page that has a that is populated with Jquery (legacy code) asynchronously after the page loads for the first time. On this page I am trying to have an angularjs directive. The only…
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
0
votes
4 answers

Best Language for Windows 2000-based Website

I've been contacted to see about updating an old legacy web application that was built using ASP and Access. The server is running Windows 2000 Advanced Server and I believe IIS 5.0 (I am trying to get confirmation on that, but the company isn't…
dragonmantank
  • 15,243
  • 20
  • 84
  • 92
0
votes
1 answer

Extend legacy site with another server-side programming platform best practice

Company I work for have a site developed 6-8 years ago by a team that was enthusiastic enough to use their own private PHP-based CMS. I have to put dynamic data from one intranet company database on this site in one week: 2-3 pages. I contacted…
Andrew Florko
  • 7,672
  • 10
  • 60
  • 107
0
votes
3 answers

Seeking suggestions on redesigning the interface

As a part of maintaining large piece of legacy code, we need to change part of the design mainly to make it more testable (unit testing). One of the issues we need to resolve is the existing interface between components. The interface between two…
ratkok
  • 739
  • 9
  • 15
0
votes
3 answers

Why is document.DOM-object.property null in legacy application

I can't find a plausible explanation for the following behaviour of javascript code. I am not very familiar with javascript and if the following code was ever valid. In a migrated legacy application there is code along those lines: function…
Marco
  • 22,856
  • 9
  • 75
  • 124
0
votes
0 answers

Composer Autoloader classmap custom file extensions

Legacy code... The Problem I have a bunch of legacy php libraries that needs to interop with new libraries. The previous developers named a lot of their php files with the extension .class ie (FooBaz.class). From my experimentation, composers…
Zach Spencer
  • 1,859
  • 15
  • 21