Originally posted by Rishi Singh:
Hi All,
Is there any open-source tool avaialable for code Refactoring.I came through one at
this
what are the other tools available as open-source
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rishi Singh:
[QB]We have not yet reached the stage of refactoring as such in the present project.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Junilu Lacar:
Refactoring is best done consistently and throughout coding. It is also best done together with unit testing.
My usual goal is to implement a small part of the design, test it, and then refactor it and revisit the design to make it better. This approach helps keep the design (and therefore, the code) clean and will leave you with a higher quality system.
Sun Certified Java Programmer
Sun Certified Java Programmer
Sun Certified Java Programmer
Originally posted by Junilu Lacar:
All I can say to that is "Cheap, fast, good. Pick two."
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Mark Herschberg:
Except for the very best to .1% of companies, I think all companies tend to get a little sloppy in the final push in the last few weeks of a project. It's often worth doing some explicit cleanup prior to stating the next version.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Junilu Lacar:
All I can say to that is "Cheap, fast, good. Pick two."
Originally posted by Ilja Preuss:
I like to think about not doing a necessary refactoring as taking on a "design debt". You are paying interest for this debt from the very first minute on until you decide to settle them.
Originally posted by Ilja Preuss:
Mhh, better than planning for a cleanup phase might be to plan for becoming one of those top companies. What do these companies do to not get "a little sloppy" in the final push?
Originally posted by Junilu Lacar:
I agree. However, there is a learning curve involved and in the early part of it, you're not really sure of what you're doing so you tend to either not refactor enough or refactor too much. Couple that with test-first programming and you get a double whammy. Consequently, progress may be perceived (especially by uninformed management) as being slower than when you weren't refactoring.
Originally posted by Rishi Singh:
what if the removal of duplication is not possible.Sometimes it becomes inevitable.
Here i would like to ask how do u foresee the difference between code optimization and refactoring.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I might spend 20 minutes now, to refactor the code I have written in the last hour, so that the next bit of work can be done in half an hour rather than an hour.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rishi Singh:
Ilja,
how would you defferentiate between code optimization and code reafctoring.?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rishi Singh:
Sometimes when it is inevitable to remove duplication and you do get stuck up , how do u then refactor it ..by starting all over again.?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Mark Herschberg:
With all due respect, I think this is a bit naive.
It's easy to say, "just do it the right way." but realistically, you can't change the process overnight.
Many companies won't change; event those that will, will change slowly. In many cases you have to take a realistic approach.
Yes, you should work towards becoming one of those top companies. But in the mean time, I think this is a practical half-way step.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Well, I guess we are in fact on the same page here. It's just that I too often encountered that "that would be best, but we can't do that right now" translated to "we will never be able to do that".
Consider Paul's rocket mass heater. |