software design question

J

Josiah Carlson

Moreover, I feel much easier to edit simultaneously
three or four buffers than to navigate back and forth on a very long single
buffer.

Depending on the features of your editor, going to different locations
in the current buffer (even offset by many lines) can be arbitrarily
trivial. When you have a source tree, you are a double-click away from
any class/function/method (or even properly-formed comments, depending
on the editor support). For those cases when keyboards shortcuts are
convenient, some editors have per-line bookmarks that allow you to hop
to often-used code portions very quickly.

I'm sure all of this can be done with Emacs (perhaps even Vim), if you
know how to do it.

P.S. once I computed the average lenght of modules in the standard library.
The result was something like 200 lines.

Sounds like a histogram is in order. Maybe I'll do it this weekend when
I have the time.

- Josiah
 
U

Uwe Mayer

Josiah said:
I would imagine he uses his own editor: http://www.python-ide.com

I also don't have any issues editing 1-3k line files using my own
editor: http://pype.sourceforge.net (PyPE itself is ~3900 lines).

I did some browsing and found another, quite nice one:
http://www.die-offenbachs.de/detlev/eric3.html

For small programs its the total overkill. It may be more usefull if you're
developing graphical programs, since it supports compiling Qt .ui files,
got some menubar entries for Qt Reference Manual, QLinguist,
QXXXDialog-Wizards, etc. (if you happen to like that sort of editor).

Nice features I found include:
- Unittest support (i.e. for rapid prototyping)
- refactoring tools
I believe the major difference, at least in terms of scalability, has to
do with the existance of a browsable source tree (aka a class browser).
It has helped me significantly.

What I am missing includes:
- browsable source tree :(
- Emacs's comment-box
- Emacs keyboard shortcuts

If there anybody knows some other nice Editors you know, I'd like to know
about them.

Ciao
Uwe
 
J

Josiah Carlson

I would imagine he uses his own editor: http://www.python-ide.com
I did some browsing and found another, quite nice one:
http://www.die-offenbachs.de/detlev/eric3.html

For small programs its the total overkill. It may be more usefull if you're
developing graphical programs, since it supports compiling Qt .ui files,
got some menubar entries for Qt Reference Manual, QLinguist,
QXXXDialog-Wizards, etc. (if you happen to like that sort of editor).

Yeah, I found Eric3 a while ago as well. My one problem is that I
couldn't get it to work with windows, every binary for QT that I tried
didn't want to work.
What I am missing includes:
- browsable source tree :(
- Emacs's comment-box
- Emacs keyboard shortcuts

Eric3 doesn't have a browsable source tree?

There is an editor called SPE (Stani's Python Editor). It has comments
and a browsable source tree. I don't know if it has the keyboard
shortcuts. One thing that stops me from using it (as opposed to my own
editor) is that it is really slow. Start messing around with multiple
buffers, or files larger than a few hundred lines. Ick.

- Josiah
 
B

Bengt Richter

Depending on the features of your editor, going to different locations
in the current buffer (even offset by many lines) can be arbitrarily
trivial. When you have a source tree, you are a double-click away from
any class/function/method (or even properly-formed comments, depending
on the editor support). For those cases when keyboards shortcuts are
convenient, some editors have per-line bookmarks that allow you to hop
to often-used code portions very quickly.

I'm sure all of this can be done with Emacs (perhaps even Vim), if you
know how to do it.



Sounds like a histogram is in order. Maybe I'll do it this weekend when
I have the time.
A quick data point:
>>> import os
>>> wc = os.popen(r'wc D:\Python23\Lib\*py').readlines()
>>> sum([int(x.split()[0]) for x in wc[:-1] if x])/float(len(wc)-1) 412.61621621621623
>>> print wc[-1]
76334 250898 2657018 Totals

Gotta go...

Regards,
Bengt Richter
 

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,179
Messages
2,570,956
Members
47,509
Latest member
Jack116

Latest Threads

Top