473,409 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Refactoring in Python.


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

Where should I look for information?

--
http://www.dembiński.prv.pl
Jul 19 '05 #1
9 2014

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

Jul 19 '05 #2
djw
Skip Montanaro wrote:
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
Jul 19 '05 #3
Skip Montanaro <sk**@pobox.com> writes:
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

--
http://www.dembiński.prv.pl
Jul 19 '05 #4

"Peter Dembinski" <pd***@gazeta.pl> wrote in message
news:87************@hector.domek...
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. Similar work (or its seeds) is here:
http://hiper.com.br/python/refactor/index.html


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


Jul 19 '05 #5
Terry Reedy wrote:
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
Jul 19 '05 #6
Investigate the CVS histories of the few 1000s python projects
available at www.sourceforge.net

enjoy

Jul 19 '05 #7

"Peter Hansen" <pe***@engcorp.com> wrote in message
news:0O********************@powergate.ca...
Terry Reedy wrote:
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.


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

tjr

Jul 19 '05 #8
Hello

Jul 19 '05 #9
Qu**********@gmail.com writes:
Investigate the CVS histories of the few 1000s python projects
available at www.sourceforge.net


I don't work with these guys :>

--
http://www.pdemb.prv.pl
Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: kent sin | last post by:
Please help: I was really blocked here. without goto I really do not known how to do it. The problem is to use PyZ3950 to consult a lists of hosts and for each of them to search for a list of...
15
by: Frans Englich | last post by:
As continuation to a previous thread, "PyChecker messages", I have a question regarding code refactoring which the following snippet leads to: > > runner.py:200: Function (detectMimeType) has too...
1
by: Dave Rose | last post by:
Hello all I've been learning Python for the past few months, reading tutorials and postings here. I've bought the personal Komodo then downloaded Eclipse with Pydev. IDLE also is a staple of...
10
by: Chinook | last post by:
OO refactoring trial ==================== Following is a simple trial structure of a refactoring (top-down to OO) learning exercise I'm doing. Whether you call it a Factory pattern, COR pattern,...
8
by: Frank Rizzo | last post by:
I keep hearing this term thrown around. What does it mean in the context of code? Can someone provide a definition and example using concrete code? Thanks.
15
by: Simon Cooke | last post by:
Does anyone know of any tools for refactoring header files? We're using a third party codebase at work, and pretty much every file includes a 50Mb precompiled header file. I'm looking for a tool...
0
by: bryan rasmussen | last post by:
Hi, I'm doing a sort of symbolic linking app in Windows for my own enjoyment, and figured I would do it in python for the same reason + learning the language. The following functions could...
21
by: Martin Geisler | last post by:
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjlQNwACgkQ6nfwy35F3Tj8ywCgox+XdmeDTAKdN9Q8KZAvfNe4 0/4AmwZGClr8zmonPAFnFsAOtHn4JhfY =hTwE -----END PGP...
3
by: r0g | last post by:
Hi There, I'm refactoring some old code that uses global variables and was originally written in one big flat file with a view to nicening it up and then extending it. The problem I have though...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.