legacy

poor man s dependency injection for legacy code

谁说我不能喝 提交于 2019-12-11 09:47:39
问题 poor man s DI seems to be an excellent way of making testable an untestable legacy codebase. Is there any drawback that i overlook? I have never seen this pattern in heavy use in refactoring legacy code. Do you think it s feasible for large scale refactoring / decoupling? 回答1: As you might already know, poor man's DI has a lot of drawbacks. For instance, the higher-level component is still dependent on the lower-level component instead of on the abstraction. This makes it harder to replace

Legacy Connect Auth stopped working

孤街浪徒 提交于 2019-12-11 09:46:11
问题 I'm working with an application that was built and integrated to Facebook using the legacy connect auth: https://www.facebook.com/login.php?api_key={appkeyhere} Starting sometime the week of Oct 22, 2012, existing users who login to the app using the above URL get redirected to https://www.facebook.com/login.php?login_attempt=1 and have a blank white screen. New users signing up to the app for the first time get redirected back to the application site. I had the people who maintain the site

Dump all Raima db_VISTA Version 3.20 data to text

心不动则不痛 提交于 2019-12-11 02:49:58
问题 A friend has an old program that no longer works but he wants to recover the data. From the file's header I've found out that it's a legacy Raima db_VISTA Version 3.20 database. I've found this similar question How can I export data in a legacy DOS application when no export option is available?, but there's no answer that tell me how to dump the data to another format. I've tried contacting Raima, but the forums seams dead (My topic wasn't even posted by the moderator) Do you know a tool

how to create a legacy (v1 or v2) X.509 cert for testing

旧城冷巷雨未停 提交于 2019-12-11 02:45:00
问题 I have to write a test case against new code which checks to make sure that an X.509 cert is version 3, but I need some legacy (v1/v2) certs to use during testing to verify that the code works. I'm trying to generate the certs using openssl on a Mac. All i get are v3 certs. I've read thru the openssl manpage and see nothing about creating v1 or v2 certs. Aside from setting up an old OS on old hardware and installing an old version of openssl, are there any ideas for generating old certs or

How to convert this code to LINQ?

这一生的挚爱 提交于 2019-12-11 01:42:55
问题 I'm trying to write this as LINQ, Original code: For Each CurrentForm As Form In MyForms AddLink(CurrentForm.GetLink()) Next I'm a LINQ beginner, so far I'm not quite sure where to use and where not to. If in this case LINQ will do more harm then help, feel free to flame me. Edit : You can assume that there is an overload for AddLink() which takes IEnumerable 回答1: Unless there is an overload of AddLink which takes a collection, LINQ won't avoid the loop. Is there is such an overload then

Will MS drop support for XP in .Net 4.* or 5.*? [closed]

拟墨画扇 提交于 2019-12-10 15:07:50
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does it matter to developers that the current, and newer versions of .Net don't support windows 2000? It scares me to think that

When do you say that the code is Legacy code?

孤街醉人 提交于 2019-12-10 14:13:59
问题 Any useful metrics will be fine 回答1: One of the things that I look for in a code is unit test. This will give the freedom to refactor it. So if the code does not have tests I consider it a legacy code. 回答2: If the code: has been replaced by newer code that implements the same or functionality or better is not being used by current systems is soon to be replaced by something else altogether has been archived for historic reasons when vendors stop supporting it 回答3: We use the term "legacy" to

How to force process isolation for an out of process COM server?

二次信任 提交于 2019-12-10 11:49:57
问题 I'm writing managed code that has to interact with a vendor's COM automation server that runs out of process. I have found that this server becomes unstable if more than one client connects to it. For example, if I have managed code in process A and managed code in process B both connecting to this COM server, a single process will be spun up for the COM server and it's behavior is less than reliable. I'm hoping there's a way to force a separate process for each client - server connection .

List all available .NET assemblies

前提是你 提交于 2019-12-10 01:53:02
问题 What is the best way to list all available .NET 2.0 assemblies? An example of the list needed is the one MS Visual Studio shows when you do 'Add Reference...' in the .NET tab. I have read Visual studio uses its own directory configuration and the GAC another and .NET instalation another. Any ideas of how I can know where this directories are in a computer portable way (another computer might have windows installed in D: drive for example)? From the information listed it must be possible to

Cleaning up a large, legacy Java project

自闭症网瘾萝莉.ら 提交于 2019-12-09 05:14:20
问题 I've been assigned to do some work on a huge Java project, and the influence of several iterations of developers is obvious. There is no standard coding style, formatting, naming conventions or class structure. It's a good day when I come across a class with Javadoc, and unit testing is a happy daydream. So far those of us on the project have been "blending in", adapting to the existing convention of whatever class we're working on, but the time is coming to impose some order and consistency.