Tagged Questions
Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.
3
votes
2answers
82 views
What are the three main technologies for a redesign of a COBOL legacy system
There exists an application that reports financial data of a bank to a national bank (all located in Europe). It is a legacy system that is written mainly in COBOL. Only the user interface is written ...
-6
votes
0answers
47 views
Is Shotgun Programming and refactoring indicated in large scale projects? [closed]
I am asking this to find out if it's better to start from scratch or apply a shotgun Programming and refactoring on existing large scale project on multiple layers.
Which is better in my case?
Edit ...
-1
votes
0answers
50 views
Tool helping split a huge class into two [migrated]
Is there a good aid/tool for helping me split a huge class into parts?
The code does its job well, but having a class over 500 lines is not comfortable. I am sure it could be split up into smaller ...
9
votes
6answers
517 views
After writing code, why do I feel that “I would have written better” after some time?
I have been working on my hobby project in C++ for more than 2 years. Whenever I write a module/function, I code it with lot of thinking. Now see the problem,
do {
--> write the code in module ...
4
votes
1answer
77 views
Should I refactor this rails application?
I have taken over the code base for a ruby-on-rails application which relies very heavily on ActiveRecord callbacks to perform domain rules.
The application can be compared to a bank application, ...
5
votes
1answer
139 views
General approach to re-factoring an large, very badly written legacy system [closed]
Possible Duplicate:
Techniques to re-factor garbage and maintain sanity?
What is a good way to refactor a large, terribly written code base by myself?
Really open question here. I'm not ...
3
votes
5answers
192 views
Example bad code project to motivate refactoring / good design [closed]
This is sort of the opposite of Is there an open-source project that can be an example of well-written code?.
I am teaching software engineering to undergraduates and I would like a blob of object ...
1
vote
0answers
82 views
Splitting Logic, Data, Layout and “Hacks”
Sure, we all heard of programming patterns such as MVVM, MVC and such.
But that isn't really what I'm looking into as Layout, Data and Logic is already pretty much split up (XML-Layout markup, ...
2
votes
1answer
88 views
Most frequently used design patterns in refactoring (my example)
I've been doing quite a lot of refactoring of C++ and C# code recently, and found that 90% of the patterns I use are:
Template method
Factory
Singleton
Are these generally the most commonly used ...
1
vote
0answers
98 views
How below code can be refactored with design pattern? [migrated]
In one of our project with 3 tier architecture (tightly coupled), there's bad code smell. It doesn't follow DRY principle. I want to refactor it with design possible design pattern. I don't want to ...
11
votes
7answers
648 views
Should I change author name in class file if I make more than 80% changes?
I am refactoring existing set of java test classes for automated UI tests.
At times I end up in making massive changes in class file or completely revamping it. This makes me think that when I am ...
3
votes
2answers
114 views
How to fix very bad code? [closed]
Possible Duplicates:
How do you dive into large code bases?
How do I handle refactoring that takes longer than one sprint?
I have 2 files that cover 5000 lines of code. I have been ask to ...
2
votes
4answers
249 views
What is a good way to refactor a large, terribly written code base by myself? [closed]
Possible Duplicate:
Techniques to re-factor garbage and maintain sanity?
I have a fairly large PHP code base that I have been writing for the past 3 years. The problem is, I wrote this code ...
0
votes
3answers
144 views
Do you have a find/replace list of C/C++ code improvements that doesn't cause side effects?
Time after time you have to work with code that's not as safe as you would like it to be. Either that's someone elses code, or something you wrote at 3am 5 years ago, but it happens.
And in those ...
0
votes
1answer
55 views
How do you solve large dependencies among files?
So basically I make several programs. Of course one program often used code from another. So I have my own personal "library"
Well, I do write jerk codes. Then When I open a project, the project will ...