On Sunday 09 December 2001 08:13, Chuck Esterbrook wrote:
> On Saturday 08 December 2001 12:16 pm, Tavis Rudd wrote:
> > That's the whole point, many tools are designed on this
> > assumption and have dockbars down the left side or use multiple
> > vertical frames. 80 might be a bit zealous, but code does get
> > ugly in many tools when wider than 80.
>
> I just tested this theory with emacs, kate and wingide. The code
> never gets ugly in kate and wingide, because they don't wrap. The
> code does get ugly in emacs because of wrapping. Not to mention the
> up and down arrow keys in emacs are paragraph-oriented instead of
> visible-line-oriented. (bleck)

I wasn't thinking about Emacs as one of these tools; rather:

* grep on the command line
* viewcvs diff screens on the web
* any other visual diff tool
* syncmail, the cvs checkin notifier which sends diffs as emails.  
Emails wrap at 76 columns in most clients.
* KDevelop

> In general, I'm not seeing that tools are designed around the
> assumption that text files stop at 80 columns.

stop thinking of text files  ... rather 'source files' which are 
higly sensitive to newlines.

> In all three products, sizing the window to be wide enough for 130
> characters actually felt excessive to me, but 110-120 felt fine. I
> have 19" monitor with 1152x864.

80 is THE standard.  Like Ian said anything else is being arbitrary 
without good reason.

> The thing of it is, using editors that allow me to not wrap, I
> don't really care how long some code lines go on. Should we even
> dictate that code lines _must_ be wrapped at a column width? Is
> this another emacs-only issue?

This is nothing to do with emacs.  80 columns is a well established 
standard, for bloody good reasons.  Why deviate? As far as I know, 
Webware is the only large Open Source Python project that:
 - uses Tabs
 - has run-on lines
 - consistently uses ''' instead of """ for docstrings.

Why don't we just follow the well established style guidelines for 
Python and end this debate once and for all?


----From the Python Style Guidelines [Guido]
  Maximum Line Length

    There are still many devices around that are limited to 80
    character lines.  The default wrapping on such devices looks ugly.
    Therefore, please limit all lines to a maximum of 79 characters
    (Emacs wraps lines that are exactly 80 characters long.)

    The preferred way of wrapping long lines is by using Python's
    implied line continuation inside parentheses, brackets and braces.
    If necessary, you can add an extra pair of parentheses around an
    expression, but sometimes using a backslash looks better.  Make
    sure to indent the continued line appropriately.  Emacs
    Python-mode does this right.  Some examples:


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to