legacy

Bestpractice approaches for reverse engineering VB6 code with out knowledge of the domain

旧巷老猫 提交于 2019-12-04 04:03:39
问题 target state: Porting VB6 Code into C#, undertake the whole project with all conceivable processes that are involved. What would be your approach if you do not have knowledge about the domain? There is nearly any documentation, just legacy code (up to 100.000 - 300.000 lines of code and comments vb6 files that contain up to 14.000 lines of code) written in VB6. 回答1: Disclaimer: I work for Great Migrations We rewrite large VB6/ASP/COM applications to .NET (primarily C#) for a living and we

Adding unit tests to an existing project

房东的猫 提交于 2019-12-04 03:29:03
My question is quite relevant to something asked before but I need some practical advice. I have "Working effectively with legacy code" in my hands and I 'm using advice from the book as I read it in the project I 'm working on. The project is a C++ application that consists of a few libraries but the major portion of the code is compiled to a single executable. I 'm using googletest for adding unit tests to existing code when I have to touch something. My problem is how can I setup my build process so I can build my unit tests since there are two different executables that need to share code

Rewrite of legacy code [closed]

こ雲淡風輕ζ 提交于 2019-12-03 18:40:32
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . My department is currently faced with the responsibility for the task of maintaining a rather large COBOL code base. We are wondering how to add new features to keep up with business needs. COBOL programmers are hard to come by these days, and we also think we would get

ActiveRecord Join table for legacy Database

随声附和 提交于 2019-12-03 15:20:18
I have a legacy database that I'm working on getting ActiveRecord to work with. I've run into a problem with join tables. I have the following: class TvShow < ActiveRecord::Base set_table_name "tvshow" set_primary_key "idShow" end class Episode < ActiveRecord::Base set_table_name "episode" set_primary_key "idEpisode" end And then I have a table called tvshowlinkepisode that has 2 fields: idShow, idEpisode So I have 2 tables and a join between them (so a many to many relationship), however the join uses non-standard foreign keys. My first thought was to create a model called TvShowEpisodeLink

Docker: what is the equivalent of the legacy --link parameter

主宰稳场 提交于 2019-12-03 11:28:20
I need to connect my db container with my server container. Now I just red about the legacy parameter --link , which works perfect $> docker run -d -P --name rethinkdb1 rethinkdb $> docker run -d --link rethinkdb:db my-server But, if this parameter will be dropped eventually, how would I do something like the above ? The docs says to use the docker network command instead (which is available since Docker 1.9.0 - 2015-11-03) Instead of $> docker run -d -P --name rethinkdb rethinkdb $> docker run -d --link rethinkdb:rethinkdb my-server you will now use $> docker network create --name my-network

Change state of React component from old external Javascript?

点点圈 提交于 2019-12-03 07:56:50
How can I change the state of a React component from my old legacy jQuery soup code? I have a component like this: var AComponent = React.createClass({ getInitialState: function() { return { ids: [] } }, render: function() { ... }, onButtonClick: function() { ids.splice(…); // remove the last id } }); When something special happens in the old jQuery soup code, I'd like to push an id to AComponent.state.ids . How can I do that? One "obvious" solution is an anti-pattern; here it is: var componentInstance = AComtonent({}); React.renderComponent(componentInstance, document.getElementById(...)); //

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

我怕爱的太早我们不能终老 提交于 2019-12-03 07:07:35
问题 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 data from tables and/or inserting/updating other data. Our extension is not an exception. Most functions return data from a quite complex SELECT statementa over many mutually bound tables (with a little added logic before returning them) or make

How to remove CSS spaghetti in legacy web app?

ⅰ亾dé卋堺 提交于 2019-12-03 06:15:26
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, mess of css to cleaned up, nicely cascading, DRY stylesheets? The app I'm currently working on has 12000 lines of css. It's grown to this size organically as early on there were no standards or review of the css, the only rule was to make the app match the design. Some of the problems we constantly have: Conflicting styles: one developer adds a

Cleaning up a large, legacy Java project

百般思念 提交于 2019-12-03 05:33:23
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. It's a daunting challenge, and I'm looking for any advice people might have on such a task. Are there

How to use legacy COM component from metro app

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting hard time to use COM objects in a metro app. As stated in MSDN the rules are: Only registration free COM objects can be used The COM can use only those APIs which are allowed for metro apps. But my CoCreateInstanceFromApp always returns REGDB_E_CLASSNOTREG. In desktop applications an error is written into the event log that SideBySide execution fails. But in metro application no such error is written into the event log. I can use the same COM object from a desktop application as registration free over the similar manifest file.