Questions tagged [legacy]

A legacy system is an old application, technology, mainframe, method, etc., still having an influence on an organization.

A legacy system is an old application, technology, mainframe, method, etc. that may or may not remain in active use, while still having a certain influence on an organization.

On one hand, maintenance of legacy systems and their integration with new solutions can be time consuming, particularly when a vendor's support is no longer available. On the other hand, legacy systems tend to be well-understood and thoroughly tested in production environments over the years since their deployment.

811 questions
11
votes
2 answers

How to remove CSS spaghetti in legacy web app?

After working on several large web applications, and seeing gigantic style sheets with no clear structure, I'd really love to know if people have found ways to keep their css clean for large and complicated web apps. How do you move from a legacy,…
case nelson
  • 3,537
  • 3
  • 30
  • 37
11
votes
8 answers

Marshalling a big-endian byte collection into a struct in order to pull out values

There is an insightful question about reading a C/C++ data structure in C# from a byte array, but I cannot get the code to work for my collection of big-endian (network byte order) bytes. (EDIT: Note that my real struct has more than just one…
Pat
  • 16,515
  • 15
  • 95
  • 114
11
votes
7 answers

How can I manage Perl module dependencies?

I'm currently in a project which develops using a framework developed by another department as the base. We are currently introducing quality standards (at last, yay!) in our department, but it's currently impossible to introduce those to the other…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
10
votes
1 answer

What's unsafe/legacy about brk/sbrk?

I've heard in a lot of places (musl mailing list, macOS forums, etc.) that brk() and sbrk() are unsafe. Many of these places either don't give explanations at all, or give very vague explanations. For example, this link states that "these functions…
S.S. Anne
  • 15,171
  • 8
  • 38
  • 76
10
votes
1 answer

OpenProcessToken failing with Access Denied (5) on Windows XP

My prototype code works fine on every Windows OS I've been able to test on, except Windows XP. When I run this on Windows XP as Administrator, I'm given Access is denied (5) when calling OpenProcessToken. Is there some difference I'm not aware…
wulfgarpro
  • 6,666
  • 12
  • 69
  • 110
10
votes
6 answers

How to deal with long running Unit Tests?

I've got about 100 unit tests and with a coverage of %20, which I'm trying to increase the coverage and also this is a project in development so keep adding new tests. Currently running my tests after every build is not feasible they takes about 2…
dr. evil
  • 26,944
  • 33
  • 131
  • 201
10
votes
4 answers

How to (unit-)test data intensive PL/SQL application

Our team is willing to unit-test a new code written under a running project extending an existing huge Oracle system. The system is written solely in PL/SQL, consists of thousands of tables, hundreds of stored procedures packages, mostly getting…
Karel Smutný
  • 1,100
  • 1
  • 9
  • 17
10
votes
16 answers

Why is the software world full of status codes?

Why did programmers ever start using status codes? I mean, I guess I could imagine this might be useful back in the days when a text string was an expensive resource. WAYYY back then. But even after we had megabytes of memory to work with, we…
David V McKay
  • 122
  • 2
  • 12
10
votes
3 answers

Legacy Java code use of com.sun.net.ssl.internal.ssl.Provider()

I am working with some code from back in 2003. There is a reference to the following class: new com.sun.net.ssl.internal.ssl.Provider() It is causing an error: Access restriction: The type Provider is not accessible due to restriction on required…
Dan
  • 101
  • 1
  • 1
  • 3
10
votes
6 answers

Namespace/solution structure

I apologize for asking such a generalized question, but it's something that can prove challenging for me. My team is about to embark on a large project that will hopefully drag together all of the random one-off codebases that have evolved through…
Chris
  • 4,030
  • 4
  • 47
  • 76
10
votes
3 answers

Tips for testing data intensive legacy application

I'm working on a very large, data-intensive legacy application. Both the code base & database are massive in scale. A great deal of the business logic is spread across all of the tiers including in stored procedures. Does anybody have any…
Michael
  • 362
  • 1
  • 5
  • 11
9
votes
4 answers

Method depends on nonexistent group - Testng

I'm trying to create two tests where one is dependent on the execution of the other one. The project I'm working on is filled with legacy code, so I'm trying to make the main parts of the application testable. The first test will basically try to…
user1213843
  • 91
  • 1
  • 3
9
votes
5 answers

How do you test/change untested and untestable code?

Lately I had to change some code on older systems where not all of the code has unit tests. Before making the changes I want to write tests, but each class created a lot of dependencies and other anti-patterns which made testing quite…
abyx
  • 69,862
  • 18
  • 95
  • 117
9
votes
4 answers

How do you start with FxCop on legacy code?

Does anyone have any experience of introducing FxCop to legacy code? We would like to have our build fail if anyone introduces code that violates rules. But for the time being, this is impossible, as the legacy code has over 9000 violations. The…
Peter
  • 13,733
  • 11
  • 75
  • 122
9
votes
2 answers

Copy constructor with non-const argument suggested by thread-safety rules?

I have a wrapper to some piece of legacy code. class A{ L* impl_; // the legacy object has to be in the heap, could be also unique_ptr A(A const&) = delete; L* duplicate(){L* ret; legacy_duplicate(impl_, &L); return ret;} ... // proper…
alfC
  • 14,261
  • 4
  • 67
  • 118