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
1 answer

Set Variable as key firebase Firebase Legacy (version 2.4.2)

var num = counter; var foo= {}; foo["id" + num]= 3; ref2.child("id" + num).update({: 3}); This is just a snippet of my code, and i'm using firebase legacy (i know i need to switch, but haven't yet). So I'm…
0
votes
3 answers

What is the best way to modernize or refactor a legacy PHP application

I'm faced with the challenge of refactoring and adding new features to a legacy PHP web "application", it consists of about 788 php scripts, which have no folder structure, they are in the most part scripts which contain JavaScript, PHP, HTML, and…
Julio Villalba
  • 149
  • 1
  • 2
  • 17
0
votes
4 answers

Did isset work differently in older versions

I got some legacy code that has this: HtmlCode1 HtmlCode2 I don't know exactly why but this seems to be working. The htmlcode1 is loaded when I have…
AntonioCS
  • 8,335
  • 18
  • 63
  • 92
0
votes
2 answers

Which Windows Driver Kit is required to use with Visual Studio 2008

I've got some legacy code compiled with vs2008 which also includes driver code so I need to download a Driver Kit to build the driver portions, but I don't know what version of the Driver Kit I should download
redbandit
  • 2,132
  • 16
  • 12
0
votes
3 answers

MSVCR80.DLL is missing. What shall I install or what shall I trick in c++ project configuration

I have a legacy msvs2005 c++ project library (dll). I opened project on WindowsXP workstation with msvs2008 installed and code compiled fine. But when I try to use it with executable module i observe "my-library.dll or one of it's dependencies were…
Andrew Florko
  • 7,672
  • 10
  • 60
  • 107
0
votes
1 answer

Classic ASP connecting to localdb for SQL Server

Can anyone explain why this works Conn.Open "Provider=SQLOLEDB;Server=tcp:myazurename.database.windows.net;Database=People;Uid=MyUid;Pwd=MyPwd;Encrypt=yes;" and this doesn't Conn.Open…
Andy
  • 2,124
  • 1
  • 26
  • 29
0
votes
0 answers

Legacy Javascript System Webpack Migration Solution

My question is How to define webpack entry points for a legacy javascript code base over hundreds of html pages I've come across this system with old school fashion frontend coding style( javascript css html) -- I call it plain jQuery style…
Ace
  • 1,093
  • 2
  • 10
  • 23
0
votes
1 answer

Should XML file contain nodes, which can be derived?

I am currently working with a large XML file which includes 123 for some elements and does not have them for others. For instance: ... ...
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
0
votes
1 answer

Understanding legacy pascal

So I need to understand what this code is doing. I don't know pascal or cryptography, and am struggling to understand what is going on in here. I need to reverse engineer SHA1DigestToHex into scala and am totally lost beyond learning pascal. Can you…
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
0
votes
1 answer

Symfony2 API with tables without entities

I have legacy code that has DB connected.I'm trying to add new features for this app with Symfony2. I used Theodo Evolution Bundle to access the legacy session. First thing that I want to do now, is to build an API that will use data from existing…
0
votes
1 answer

legacy code in matlab/simulink for keil program

I have wrote a program in Keil for stm32F4 discovery microcontroller and i want to run this C program in Matlab simulink. For this I am trying to use legacy_code function in Matlab. But there are many parameters which I cannot add like…
0
votes
1 answer

class design: add derived class to a legacy inheritance hierarchy

Say I have Class Base { public void foo() //a public interface to user { doA(); doB(); } protected void doA(){...} //common implementation protected void doB(){} //type specific implementation } Class Derived1…
Edward67
  • 35
  • 2
  • 6
0
votes
1 answer

Can't run Cocoa UnitTests because of Garbage Collector disabling

I'm trying to add some UnitTests to a bunch of Cocoa Legacy code. I created a Unit Test Bundle, and added all source and frameworks needed, but the build fails with this message: 2010-08-26 16:07:18.074 otest-x86_64[64675:903] The test bundle at…
Giordano Scalzo
  • 6,312
  • 3
  • 31
  • 31
0
votes
0 answers

Unit testing for PHP 5.1 without Phpunit?

I'm dealing with legacy code from php 5.1 and I need to fix or refactor the code. I'm trying to install Phpunit 3.4 and I found this lib but I can't find the dependencies so maybe thats not the best solution... Is there any legacy distro image that…
0
votes
1 answer

Phpunit for legacy PHP 5.1?

I'm doing some refactoring work, and I really need a phpunit library to start some testing (or it will be very annoying and slow process). So i'm trying to find a Phpunit version that runs with Php 5.1. Any help with this or any recommendation for…