Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q 4 Bill Dudney (3): importance of refactoring

 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Bill Dudney,

Refactoring seems an important topic in both
your book and EiA why this 'trend'? Is it more
a technical nice-to-have facility or does it
reply to a demand of the software development
comunity where refactoring is more at the order
of the day and caused by the myriad of solutions
one can try: e.g. frameworks (scaffold, tapestry,
etc,etc), class libraries of different vendors
or open source...

Cheers,

Gian Franco
[ June 23, 2004: Message edited by: Gian Franco Casula ]
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gian,

Refactoring is a major part of Agile development methods, thus the hype.

It is most useful and I'd suggest Fowler's book on the subject (google or Amazon).

Good luck!
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,

Thanks. At my place we are still holding
on to a traditional (old ) way of developing
software, but we are constantly looking at
different frameworks and class libraries.

Cheers,

Gian Franco
 
Loren Rosen
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even in a traditional development environment, refactoring needs will arise. For example, the new features you add to version 2 that you didn't plan for in version 1 may motivate re-arranging the code, which is to say, refactoring.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gian Franco Casula:
Refactoring seems an important topic in both
your book and EiA why this 'trend'? Is it more
a technical nice-to-have facility or does it
reply to a demand of the software development
comunity where refactoring is more at the order
of the day and caused by the myriad of solutions
one can try: e.g. frameworks (scaffold, tapestry,
etc,etc), class libraries of different vendors
or open source...


I'd guess that I do hundreds of refactorings a day - rename a method, move a class to a different package etc.

The reason for this is that I always learn something when I implement a design, and I want to put that learning into the code.
 
Michael Pavlov
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gian Franco,

Especial about refactoring; you mentioned that you
"are still holding on to a traditional (old ) way of developing
software..."; I know what you mean, well you should really try
Eclipse; for example we (our developer team) just completed a
major refactoring process in two days using Eclipse!; I don't
have to mention that with traditional tools and editors this
process would've take 2-3 weeks! (renaming and removing classes,
creating new well structured packages, changing method signatures,
then recompiling and dealing with the errors from the old method
calls and fix them one by one, that takes a lot of time; this
great IDE is checking all the references and is changing them
accordingly so you don't have to trace all the method calls to
match the new signatures etc...). You would love it ...

Good luck,
Michael
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys,

I'm in a learning proces as we speak

Cheers,

Gian Franco
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic