legacy

Strategy for large scale refactoring

懵懂的女人 提交于 2019-11-28 18:45:30
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 mud in to two pieces. Repeat until done... Strangling Strangle the classes (as described in http:/

MS Access DB Engine (32-bit) with Office 64-bit

家住魔仙堡 提交于 2019-11-28 18:35:33
问题 We currently have a major issue using Microsoft Access Database Engine 2010. The engine comes in 64-bit and 32-bit forms, which is good. However, apparently you need to always install the 32-bit version if the host process is always 32-bit. Fine, we can do this. Our software deals with a lot of legacy components that are 32-bit, and much of it is in VB6 code, which generates 32-bit assembly. So, we are under the assumption that the driver must also be installed as 32-bit. Indeed, when we

What makes code legacy?

落花浮王杯 提交于 2019-11-28 17:11:58
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 nightmare to work with. When is it better to throw it away? It is my opinion that code should be

Being pressured to GOTO the dark-side

筅森魡賤 提交于 2019-11-28 16:56:42
问题 We have a situation at work where developers working on a legacy (core) system are being pressured into using GOTO statements when adding new features into existing code that is already infected with spaghetti code. Now, I understand there may be arguments for using 'just one little GOTO' instead of spending the time on refactoring to a more maintainable solution. The issue is, this isolated 'just one little GOTO' isn't so isolated. At least once every week or so there is a new 'one little

Get back default properties after applying a global CSS reset

自闭症网瘾萝莉.ら 提交于 2019-11-28 13:48:12
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 files. So now my bar.css is extending foo.css , starting with: @import url("style.css"); The problem is

What's the best way to become familiar with a large codebase? [closed]

十年热恋 提交于 2019-11-28 13:16:41
问题 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 6 years ago . Joining an existing team with a large codebase already in place can be daunting. What's the best approach; Broad; try to get a general

Is it possible to use the VC++ 6 compiler in Visual Studio 2012?

本秂侑毒 提交于 2019-11-28 06:34:18
I am using Visual Studio 2012 to develop my projects, and I also have installed Visual Studio 2010 - which gives me the option to use the VC++10 compiler in Visual Studio 2012 (project properties), but I also have installed Visual C++ 6 and somehow the option to use the VC++6 compiler is not present in Visual Studio 2012, how do I add this option (manually)? chue x The answer is definitely maybe. It seems quite possible, but I could not get a copy of VC 6 so I was unable to verify it. What I was able to do was to get VS 2012 to use VC 7 (VS 2002) to compile a project. Update: The answer is

How do you introduce unit testing into a large, legacy (C/C++) codebase?

依然范特西╮ 提交于 2019-11-28 02:43:43
We have a large, multi-platform application written in C. (with a small but growing amount of C++) It has evolved over the years with many features you would expect in a large C/C++ application: #ifdef hell Large files that make it hard to isolate testable code Functions that are too complex to be easily testable Since this code is targeted for embedded devices, it's a lot of overhead to run it on the actual target. So we would like to do more of our development and testing in quick cycles, on a local system. But we would like to avoid the classic strategy of "copy/paste into a .c file on your

Why are bmps stored upside down?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 23:35:20
Why are BMP images stored upside down and zero-padded so they are four-byte aligned? Here's a quote from Petzold: So, in DIBs, the bottom row of the image is the first row of the file, and the top row of the image is the last row in the file. This is called a bottom-up organization. Because this organization is counterintuitive, you may ask why it's done this way. Well, it all goes back to the OS/2 Presentation Manager. Someone at IBM decided that all coordinate systems in PM—including those for windows, graphics, and bitmaps—should be consistent. This provoked a debate: Most people, including

Classic ASP server-side JSON library

浪尽此生 提交于 2019-11-27 22:30:46
问题 I have inherited some Classic ASP code and I need a JSON library that can be instantiated and run server-side for use with JavaScript-coded server-side ASP. How can I do this? 回答1: For writing/outputting JSON i believe the aspjson project is a pretty good choice. Parsing JSON in ASP "classic" is discussed here: Any good libraries for parsing JSON in Classic ASP? In that thread, Chris Nielsen has a creative idea of using a Javascript library on the server side (as ASP supports JScript as well