legacy-code Questions
3
I'm converting some old legacy VB apps from .NET framework to .NET 5, and have worked through most of the issues, however, I'm lost on these:
Error BC30002 Type 'Global.Microsoft.VisualBasic.Applic...
Lynnelynnea asked 26/4, 2021 at 22:32
5
Solved
I'm working on a C++ application which uses a library written in C by another team. The writers of the library like to call exit() when errors happen, which ends the program immediately without cal...
Comminute asked 7/1, 2013 at 16:11
4
Should I select the Use legacy android.support libraries option when creating a new project? What will happen if I don't select this option?
Sambo asked 11/6, 2020 at 13:3
2
Solved
I came to work for a company recently that has been working on a specific rails project for a while. Dropped in the middle of the development process, I'm beginning to go back and write tests for t...
Lesotho asked 6/5, 2014 at 13:0
2
I have a large (~15k LoC) JS app (namely a NetSuite app) written in old-style all-global way. App consists of 26 files and dependencies between them are totally unclear.
The goal is to gracefully ...
Ephesians asked 20/12, 2017 at 16:17
3
Solved
I have a a static method in some legacy code, which is called by multiple clients. I obviously have no options to override it, or change behaviour through dependency injection. I am not allowed to ...
Mac asked 12/4, 2013 at 8:38
8
Solved
How can I write a unit test for a method that has a using statement?
For example let assume that I have a method Foo.
public bool Foo()
{
using (IMyDisposableClass client = new MyDisposableClass...
Ordovician asked 23/12, 2009 at 16:3
4
Solved
I have a C++ DLL which was written in 1998, and I want to view the members (properties, fields, methods, constructors etc). I am of the understanding that the company who wrote the DLL is no longer...
Excursionist asked 11/12, 2012 at 14:46
3
Solved
I am reading a book (Programming with POSIX Threads by Butenhof, 1997) that uses C, and I came across the following line:
(void)free(data);
Here, data is just a pointer to an allocated struct,
...
Lavoisier asked 10/3, 2020 at 21:4
8
Solved
I have to find a memory leak in a Java application. I have some experience with this but would like advice on a methodology/strategy for this. Any reference and advice is welcome.
About our situa...
Peoria asked 24/3, 2010 at 20:53
3
Solved
I need to do refactoring in a big legacy Python code base.
Often I think "these lines don't get executed in production any more".
But I am unsure.
There are some tests which touch these lines. B...
Departmentalism asked 7/5, 2018 at 7:30
1
Solved
Debugging legacy code and I have a strange issue. The legacy code is being moved to PHP 7.2. I don't know which version of PHP it was originally written for but it does work in PHP 5.6.
Below is m...
Zip asked 16/11, 2018 at 16:2
3
I'm looking to convert a relatively new web-based application with a clear domain model over to more of a CQRS style system. My new application is essentially an enhanced replacement of an older ex...
Hafer asked 19/6, 2012 at 14:8
1
Solved
I am developing an internal library that is to be used by other developers in the company that I'm working for. I am applying SOLID patterns and following the best practices as described in Depende...
Southwest asked 22/3, 2018 at 13:20
1
Solved
I'm about to migrate queries from Legacy to Standard in BQ.
In Legacy I used to have x/y returning null if y=0, however, I'm stuck in StandardSQL with the error:
Error: division by zero
I'd li...
Winker asked 18/3, 2018 at 9:14
4
Solved
I am doing some JavaScript cleanup work on a legacy project, and trying to get rid of redundant JS libraries. I have done all the obvious ones (those that are not references from anywhere at all). ...
Suspension asked 31/5, 2013 at 9:47
1
Solved
I have inherited a horrible bit of legacy code which includes about 1000 lines of utility class definition that needs to appear before the "real" code in a source file. To avoid clashes with other ...
Giana asked 27/4, 2016 at 12:47
1
Solved
When I used the (recently released) Cppcheck 1.69 on my code1, it showed a whole lot of messages where I expected none. Disabling noExplicitConstructor proved that all of them were of exactly this ...
Salver asked 5/5, 2015 at 11:58
1
Solved
Given an application-wide collection of objects, and many unrelated classes that need frequent access to these objects, what is the best way to provide said access?
Example:
// Object A, stored i...
Conlee asked 29/11, 2015 at 20:36
2
While working on Rails 2.3.18 to Rails 3.2.x migration I am facing name issue in type column
Here is the relation that is defined.
app/models/reservation.rb
class Reservation
end
class Reservat...
Behan asked 3/11, 2014 at 7:33
9
Solved
I can't seem to find a straight answer on this. It appears that Visual Studio 6 won't be supported, but I'm only concerned with the runtime. We have some legacy apps that we'd rather not rewrite, b...
Catalogue asked 15/1, 2009 at 14:46
2
I have ~16k lines of 1998 vintage C code (~50 main progs) which built flawlessly under gcc at that time but now fails with many "lvalue required as left operand of assignment" errors in the first r...
Phosgene asked 14/4, 2014 at 20:9
1
Solved
I'm refreshing some older code (someone else wrote), and came across this:
if ( empty ( $role_data["role_id" == 1]))
what are the reasons (if any) one would use the above instead of?:
if ( $rol...
Eberhart asked 7/7, 2015 at 14:4
3
Solved
I have a legacy codebase and I need to test that code with PHPUnit. So I am asking for suggestions based on your experiences. Which classes I should test first? Or give the priority?
Should I sta...
Pungy asked 6/4, 2011 at 10:27
1
Solved
I try to make a non-AMD library loadable with dojo, I've chosen a separate folder as a new (pseudo) AMD-package and placed the files of that library in that folder, together with the main.js file, ...
Golconda asked 23/10, 2014 at 15:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.