Refactoring in Python.

P

Peter Dembinski

I am trying to write Master Thesis on refactoring Python code.

Where should I look for information?
 
S

Skip Montanaro

Peter> I am trying to write Master Thesis on refactoring Python code.

Peter> Where should I look for information?

I'm not sure, but one piece of code to check out would probably be Bicycle
Repair Man, a early-stage prototype refactoring tool for Python. I don't
recall where it's hosted. Google will know.

Skip
 
D

djw

Skip said:
Peter> I am trying to write Master Thesis on refactoring Python code.

Peter> Where should I look for information?

I'm not sure, but one piece of code to check out would probably be Bicycle
Repair Man, a early-stage prototype refactoring tool for Python. I don't
recall where it's hosted. Google will know.

Skip
If you install Eric3, its included.

-Don
 
P

Peter Dembinski

Skip Montanaro said:
Peter> I am trying to write Master Thesis on refactoring Python
Peter> code. Where should I look for information?

I'm not sure, but one piece of code to check out would probably
be Bicycle Repair Man, a early-stage prototype refactoring tool
for Python. I don't recall where it's hosted. Google will know.

Well, I can't simply describe Bicycle Repairing Man in my thesis :)

The idea is to define some 'mechanics' for refactoring Python code
without specialized refactoring browser. In other words, I want
to convert Fowler's refactorizations to Python.

Similar work (or its seeds) is here:
http://hiper.com.br/python/refactor/index.html
 
T

Terry Reedy

Peter Dembinski said:
Peter> I am trying to write Master Thesis on refactoring Python
Peter> code. Where should I look for information?

As best I remember, there has been little posted here over several years
other than general comments like 'Python makes it easier to refactor'. So
there is room for you to do something new ;-).

Where to look: if you have not already, read the tutorial, at least chap 2
of the Library Ref, and at least skim the FAQ. Use Google or whatever for
web searches. Specifically use Google for searching its archives of
comp.lang.python. Then ask specific questions here.
The idea is to define some 'mechanics' for refactoring Python code
without specialized refactoring browser. In other words, I want
to convert Fowler's refactorizations to Python.

I have not seen this before. Since he only did chapter 1, I think 'seed'
is the word.

Another specifically helpful reference might be Beck's (author?) book on
Test-Driven Development. Part 1 uses an example in Java, I believe. Part
2, I know, uses an example in Python. There at least used to be a copy
online.

Wishing you an 'A' and hoping to see the result online...
Terry J. Reedy
 
P

Peter Hansen

Terry said:
Another specifically helpful reference might be Beck's (author?) book on
Test-Driven Development. Part 1 uses an example in Java, I believe. Part
2, I know, uses an example in Python. There at least used to be a copy
online.

The online copy was merely a draft, never brought up
to the final state of the paper version and, if I
recall correctly, entirely missing the Python sections.

For anyone interested in checking this out further:
it was in the "Files" section of the Yahoo Groups
group called "testdrivendevelopment", along with
several earlier versions. (The book was developed
in a pseudo-test-driven-development fashion, with
drafts published for feedback from the group readers.)

-Peter
 
T

Terry Reedy

Peter Hansen said:
The online copy was merely a draft, never brought up
to the final state of the paper version and, if I
recall correctly, entirely missing the Python sections.

It was the online copy that I read *with* a Python section. Have no idea
if there was more in the book.

tjr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,235
Messages
2,571,181
Members
47,818
Latest member
KazukoXea6

Latest Threads

Top