What tools are used for Phyton code refactoring?

Posted on 2012-08-13
Medium Priority
Last Modified: 2014-12-08
Our website is written on Phyton and before we start refactoring, I would like to make sure that we use optimal tools. We need to verifies which lines of code is dead and not used anymore and if there is any piece of code which generates output which is not used by any further process...
Question by:B1RU
LVL 29

Accepted Solution

pepr earned 2000 total points
ID: 38290907
It depends on the tools that you use now and on the principles of the work in your team.

The "Bicycle Repair Man" (http://c2.com/cgi/wiki?BicycleRepairMan) is often mentioned (add on to Emacs, vim, IDLE, ...?)

When refactoring, it is always better when your project follows the principles of the Agile software development (http://en.wikipedia.org/wiki/Agile_software_development), namely when your project uses unit testing during the development.

Anyway, you will need to check and visualize your code. Probably the pylint (http://www.logilab.org/project/pylint and the suite mentioned in the "see also" at the page) can help you.

There also is Doxygen (http://www.doxygen.org/) that could help you to document and visualize your project. However, Python is one of the languages added to the supported ones. It was primarily designed for C++.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Variable is a place holder or reserved memory locations to store any value. Which means whenever we create a variable, indirectly we are reserving some space in the memory. The interpreter assigns or allocates some space in the memory based on the d…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question