legacy

Unit Testing Legacy ASP.NET Webforms Applications [closed]

六眼飞鱼酱① 提交于 2019-11-27 22:16:45
I've inherited a legacy web application that has no unit tests in it. I'd like to add some, but am at a loss of where to start. Should I add them to old code? Or just new code going forward? What if that code interacts with legacy code? What would you suggest? First, I would recommend unit testing all changes going forward, I think most everyone would agree this is a good idea for regression. However, for existing code, this is one of those situations where you need to look at how much risk you're willing or allowed to introduce into the product. The problem is that when you start to unit test

Stored procedures reverse engineering

时光怂恿深爱的人放手 提交于 2019-11-27 16:14:13
问题 We're having problem with a huge number of legacy stored procedures at work. Do you guys recommend any tool the can help better understand those procedures? Some kind of reverse engineering that indentifies inter-procedure dependencies and/or procedure vs. tables dependencies. Can be a free or commercial tool. Thanks! 回答1: Redgate has a rather expensive product called SQL Dependency Tracker that seems to fulfill the requirements. 回答2: The cheaper solution than 'dependency tracker' is the data

JDK 1.6 and Xerces?

北战南征 提交于 2019-11-27 13:27:22
问题 In my current project, we target a JDK 1.6 Runtime environment. For legacy rasons, Xerces JAR files are bundled in the application. These are no longer needed right? The JDK has (for a while) had XML parsing libraries bundled in the JDK? 回答1: Bundling an XML parser has not been necessary since 1.4 when JAXP was added to the JRE. You should use JAXP and not directly call Xerces. Internally, the JRE bundles and uses Xerces anyways (with a "com.sun" prefix). 回答2: These XML services plug in

Strategy for large scale refactoring

你离开我真会死。 提交于 2019-11-27 11:39:20
问题 I'm currently working in a piece of code where both logic and data access are present in the GUI classes. Obviously, I would like to improve on this situation. The current structure is basically: Big ball of mud The ultimate goal is to achieve a DDD-like structure: DAL Domain model Service layer Presentation model GUI So, how would you attack the problem? Big bang Define the structure for the final state and push code to its ultimate home. Divide and conquer Try to separate the big ball of

DDD, Anti Corruption layer, how-to?

白昼怎懂夜的黑 提交于 2019-11-27 11:28:18
At the moment, we have to build an application which is based on a legacy one. Code for that old application should be thrown away and rewritten, but as it usually goes - instead of rewriting it, we need to base something new on it. Recently, we decided to go the DomainDrivenDesign path. So -- anti corruption layer could be a solution for our problems. As far as I understand, this way it should be possible to gradually rewrite the old application. But -- I can't find any good example. I would appreciate ANY information. Troy Campano In my particular implementation, EmployeeAccessService is

What makes code legacy?

给你一囗甜甜゛ 提交于 2019-11-27 10:16:05
问题 I have heard many developers refer to code as "legacy". Most of the time it is code that has been written by someone who no longer works on the project. What is it that makes code, legacy code? Update in response to: "Something handed down from an ancestor or a predecessor or from the past" http://www.thefreedictionary.com/legacy. Clearly you wanted to know something else. Could you clarify or expand your question? S.Lott I am looking for the symptoms of legacy code that make it unusable or a

Best Strategy for moving from VB6 to .NET [closed]

江枫思渺然 提交于 2019-11-27 09:17:17
My company has tons of legacy applications that are written in VB6. We are in transitions from moving VB6 applications to .NET (3.5 specifically). What would be the best strategy for moving form VB6 to .NET? NOTE : Below update should go to "Project Management" and has nothing to do with the main question. [UPDATE] : Thank you for your feedback so far Now there are more question that pop up are how would you assign developers to develop new applications? Should there be a special one-time upgrade division that will convert legacy apps to new ones? Or should every developer participate on

Get back default properties after applying a global CSS reset

孤人 提交于 2019-11-27 07:54:13
问题 Some legacy code that I have to build upon, really makes me feel the cons of global CSS reset. I have the old foo.css that starts with * {margin:0; padding:0;} and I used to copy it to a different file bar.css , tweak it too my needs ( out with the CSS reset ), and use it to replace foo.css only in the code I'm writing. I do this not to worry about backwards compatibility with the older sections of the site. Now this is quite cumbersome: for global changes I have to remember to modify both

Finding “dead code” in a large C++ legacy application [closed]

倖福魔咒の 提交于 2019-11-27 06:27:16
I'm currently working on a large and old C++ application that has had many developers before me. There is a lot of "dead code" in the project, classes and functions that aren't used by anyone anymore. What tools are available for C++ to make a analysis of large code base to detect and refactor dead code? Note: I'm not talking about test coverage tool like gcov. How do you find dead code in your project? Alan Jackson You'll want to use a static analysis tool StackOverflow: What open source C++ static analysis tools are available? StackOverflow: C++ static code analysis tool on Windows Wikipedia

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

泄露秘密 提交于 2019-11-27 04:40:46
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 field.) Is there a way to marshal the bytes into a big-endian version of the structure and then pull out the values in the endianness of the framework (that of the host, which is usually little-endian)? (Note, reversing the array of bytes will not work - each value's bytes must be reversed, which does not give you the same collection as reversing all of