I'm a little confused as to why this doesn't give an error. I found this code deep inside of some outdated legacy software and was surprised to see it work.
public static string CleanFileName(this string fileName)
{
return CleanFileName(fileName, 64);
}
public static string CleanFileName(this string fileName, int maxLength)
{
//so...
I'm trying to add some UnitTests to a bunch of Cocoa Legacy code.
I created a Unit Test Bundle, and added all source and frameworks needed, but the build fails with this message:
2010-08-26 16:07:18.074 otest-x86_64[64675:903] The test bundle at
/Users/giordano/application/build/Release/UnitTest.octest
could not be loaded because its...
Suppose you are project manager of large project with a lot of code which was developed for long time. For some parts of code team have knowledge, for others - not.
It is good to distribute responsibility between team mates in some wise way.
There are no problems with the code the author of which is still in the team.
But the approach ...
Hi all,
I am a junior software engineer who've been given a task to take over a old system. This system has several problems, based on my preliminary assessment.
spaghetti code
repetitive code
classes with 10k lines and above
misuse and over-logging using log4j
bad database table design
Missing source control -> I have setup Subvers...
I am looking to revive some old C++ code, developed in Turbo C++ for DOS. It's a console-based text game.
This app makes heavy use of conio.h - the Turbo C-specific functions (I think) gotoxy(), window() and the like.
I find that Turbo C++ compiler is no longer available for download. Embarcardero/CodeGear/Borland seem to have removed...
I started occupational programming with Delphi when the Turbos came out , and have licenses for Delphi 2006 Turbo Pro and Delphi 2009 Professional. I have been asked to support another in-house tool, written by another occupational programmer, who has since retired.
It's a Windows program, but it was developed with Delphi 6 using the CL...
hey there!
The brand-new WCF-based code needs (in the meanwhile) to provide a service to a legacy code that works in plain HTTP. So that, along with new SOAPed requests, I need to tailor some oldskul-style communication (on a different port): to be able to receive plain HTTP, analyse the request body and send the plain HTTP with some bo...
I am currently working with a large XML file which includes <Count>123</Count> for some elements and does not have them for others. For instance:
<Animals>
<Pigs>
<Pig ...>
...
</Pig>
<Pig ...>
...
</Pig>
<PricePerPound>13<PricePerPound>
<Count>2</Count>
</Pigs>
<Chikens>
<Chicken ...>
...
I am working with a few programs in PHP 4, ASP classic and C# (.NET 2). They were all created by different people with different styles. None of them have any unit tests and there are very few comments. I would like to be able to effectively add new features to the code while refactoring small parts along the way and I am wondering which...
There seem to be enough threads on how to get a grip on a new rather larger than you're used to code base. I intend to ask Stack Overflow, how many of you deal with inheriting code bases for which the whole development environment needs to be recreated? I'm talking like, out of production dev tools fetched, parts of a project built wit...
Scenario: There is a legacy program (Not sure what language) and I have been asked to "Compact and Archive forms in the database". At the moment when the user opens the application it is taking about 2-5min to load around 27000 Records!!! My theory is that it is loading all the records on start-up but that might not be the only reason. ...
After months of frustration and of time spent in inserting needles in voodoo dolls of previous developers I decided that it is better try to refactor the legacy code.
I already ordered Micheal Feather's book, I am into Fowler's refactoring and I made some sample projects with DUnit.
So even if I don't master the subject I feel it is ti...
I have a legacy msvs2005 c++ project library (dll). I opened project on WindowsXP workstation with msvs2008 installed and code compiled fine. But when I try to use it with executable module i observe "my-library.dll or one of it's dependencies were not found".
Dependency Walker tells me that MSVCP80.DLL, MSVCR80.DLL, MSVCR90D.DLL are m...
I am looking for some good tips to track and understand huge codebase. I usually start at the top and end up getting lost in some nitty-gritty details of a function after a while. Since I would have already been many levels deep, the process of backing up and getting on track is tiresome and exhausting. How do you keep track of the trail...