Refactoring = improving the design of existing code without
changing (adding/removing/breaking) functionality.

In the message you quote that uses the term "refactor",
the term is used somewhat incorrectly in my opinion.
Refactoring is NOT AT ALL the process of fixing broken
code which is simply "debugging", not "refactoring".

Refactoring is used to improve the design, the internal
structure of code with the goal of producing "well factored"
code. Well factored code conveys intent very clearly, is as
simple as possible and makes adding new functionality very
easy and natural.

A simple refactoring is "Extract Method", where a new method is
created using a piece of code from withing another method
(or multiple methods) and replacing this piece of code
with a call to the newly created method.

For an in depth definition and comprehensive how-tos
see Martin Fowler's book "Refactoring" (Addison Wesley).

Regards,
Thomas

> -----Original Message-----
> From: Peter Brandt-Erichsen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 02, 2001 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: Definition of refactor needed...
> 
> 
> I have seen this term "refactor" used on
> and off (see below) and am unsure as to its
> precise meaning, could someone define it for me?
> 
> Thanks
> Peter


-----Original Message-----
From: Dave Smith <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, January 02, 2001 9:34 AM
Subject: Re: Repost of problem: tomcat hangs with sockets on CLOSE_WAIT when
user cancels request


>Ramakrishna,
>
>>
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:268)
>
>Your JSP is crapping out. Are you catching this by using an error page?
>Notice, the trace is kind enough to even tell you the line number of the
>offending source code. Look in the work folder and examine the generated
>jsp source code at line 268.
>
>Or, use your favorite debugging strategy and refactor.
>
>Regards,
>
>Dave

************************************ 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
************************************ 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to