// legacy code
void setCacheValue(String name, Object value){
getServletContext().setAttribute(name, value);
}
Object getCacheValue(String name){
return getServletContext().getAttribute(name);
}
// so I want to use generic for "type safety"
// first, set method seems working perfectly
<T> void setCacheObject(String name, T va...
We're using this JSP template solution almost verbatim at work:
http://java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates/
When it gets JSP pages to be included, it uses pageContext.include, which leaves us with one problem, and that is that we have a lot of scriplet code that gets initialized in the JSP itself (tag...
I have recently been assigned a project to further develop an existing code base. The code doesn't contain any tests and not even one single line of comments. The whole "thing" is written in a really obfuscating manner so it takes a lot of time to figure out what happens.
How do you usually approach this kind of problem? Tips and trix o...
I don't mean for this question to be a flame bait but I'll be using Microsoft and their win32 API as a example of a legacy API.
Now what I am wondering here is Microsoft is spending a lots of their money and energy in maintaining their legacy API, including all of the "glitches/bugs/workaround" that are needed to keep the API functionin...
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...
I have been a professional programmer for more than 30 years, and have chosen a career path involving hands-on programming. Programming is something that I love, and I take great pride in the fact that I have continued to keep up to date with current technology. Projects on which I have worked include large enterprise projects as well as...
I'm updating some legacy apps to Visual Studio 10 and am in linker hell. All of these DLLs derive classes from CWinApp and use AfxGetApp() to get access to the object. When I link the DLLs I get unresolved externals that look like global static objects that would get pulled in by a normal app's main():
Shell.lib(SHELL.obj) : error LNK20...
Hi, we have a web application that users can take online reports from ou ERP system data... And we have another web application that is used by our teachers and employees.
We can't change the ERP web app because its a closed DLL, in this case we made some extended functionality in our custom internal web app and we are willing to put t...
I have a rather large legacy Java Applet that has several problems:
It looks like shi$%#$
It loads up slowly
It hangs on some browsers occasionally even with the latest JRE
Because Java Applets have kind of gone the way of the dodo bird I can't find any recent reliable information on how to mitigate these problems.
That being said I...
Using Play! framework and it's JPASupport class I have run into a problem with a legacy database.
I have the following class:
@Entity
@Table(name="product_catalog")
public class ProductCatalog extends JPASupport {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Integer product_catalog;
@OneToOne
@Jo...
I've got a very old php application (1999) that has been worked on during the last ten years. At this point the app starts to show it's age so i'm in te progress of migrating to a "new" framework, symfony 1.4. But since the app is very large, i cannot do this at once. So i'm planning to wrap the old app into the new symfony app, and conv...
I have C++ code that uses some C libraries. The C libraries take C language callbacks. I wrote a callback in my C++ code and now I somehow need to report error from it (but it returns void). I wonder if I can throw an exception from a C callback that is used from C++ code?
This is very difficult for me to understand.
Thanks, Boda Cydo....
Dear all,
We have a legacy system consists of class A, B and C. A is horrible and large. So is B. And C too!! (This is acknowledged within the company and we are trying to re-factoring them in the future).
The more scary thing is A and B extends C which they really shouldn't as they are not really the same thing. A developer (call him...
Can anybody give me hints and help how a large ASP.NET webapplication can be structured / designed with "subwebs" !? In other words I want to structure a large web-application where I have a solution with more web-application projects. These projects are more or less independent "modules". One project should be a kind of frame applicatio...
I don't know if this actually belongs here, maybe this question is more suitable to superuser. Well, last week I've wrote a small shell-script, where I used the tar command. As I read the man on the opengroup page about tar, I saw that it was marked as legacy, and that it is recommended to not use it any more. Does anyone knows why? And ...
Out of idle curiosity, does anybody know of a term for replicating bugs in a new implementation of an old system so as to maintain backwards compatibility with old clients that rely on the buggy functionality? I'd be particularly interested if it included a connotation of having to reverse engineer the incorrect behavior so as to proper...
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 line...
Hello all,
I have some relatively large legacy method that I would like to refactor. It fits "Bulleted method" type as specified in Michael Feathers' "Working Effectively With Legacy Code" and thus it could be split in several sequential methods in rather straight-forward way . But each of its sequential steps outputs some log message a...
Possible Duplicate:
Why is IE6 still a corporate favorite in some organizations?
As of July 2010, IE6 browser usage is still lingering at around 7%. (w3schools.com) It's well known that most installations of IE6 are coming from companies that have internal software systems that absolutely require the use of Internet Explorer 6...
I want to retrofit slf4j with Logback into a legacy application. Good thing is, the legacy application has its own logging framework. So all I had to do is alter the logging framework to log to slf4j instead of log4j.
It worked like a dream. I was happy, until I noticed the location Logback logged for each and every log event:
Logger.j...