Version 3 of refactor

Updated 2003-04-08 13:07:21

Refactoring is the process of changing the structure (or design) of code without changing the function. See these interesting references for discussions about refactoring.

http://www.refactoring.com/

http://www.wikipedia.org/wiki/Refactor

http://ootips.org/refactoring.html

http://www.exciton.cs.rice.edu/comp410/books/refactoring.html

http://emw.inf.tu-dresden.de/de/pdai/Forschung/refactoring/refactoring_html/node26.html


Packages

One common approach for refactoring Tcl code is to repackage groups of functions into namespaces and packages. This modularization can improve the code maintainability, and it is very easy to do. See How to build good packages, and the cannonical reference by Will Duquette http://www.wjduquette.com/tcl/namespaces.html


Tools

ActiveState's Komodo and Red Hat's Source Navigator both have project browsing capability for Tcl, although they aren't specifically for refactoring. For Source Navigator, see [L1 ] for a description, and [L2 ] for downloads.