Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Compare source code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 151 - 175 of 191 - Collapse all  -  Translate all to Translated (View all originals) < Older  Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Holden  
View profile  
 More options Nov 6 2010, 3:41 am
Newsgroups: comp.lang.python
From: Steve Holden <st...@holdenweb.com>
Date: Sat, 06 Nov 2010 03:41:12 -0400
Local: Sat, Nov 6 2010 3:41 am
Subject: Re: Compare source code
On 11/5/2010 4:09 PM, Seebs wrote:

The whitespace-eating nanovirus was conquered in 2005, and is not
expected to reappear.

> Were someone to invent a *new* text editor, which mangled whitespace, I
> would accuse it of being gratuitously incompatible with Python; I tend
> to regard compatibility, once you get past the standards, as a matter
> of temporal precedence.

> -s

If someone were to use a text editor which had always historically
mangled whitespace I would find myself wondering why they found it
necessary to restrict themselves to such stone-age tools.

regards
 Steve
--
Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon 2011 Atlanta March 9-17       http://us.pycon.org/
See Python Video!       http://python.mirocommunity.org/
Holden Web LLC                 http://www.holdenweb.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Nov 6 2010, 4:27 am
Newsgroups: comp.lang.python
From: Seebs <usenet-nos...@seebs.net>
Date: 06 Nov 2010 08:27:00 GMT
Subject: Re: Compare source code
On 2010-11-06, Steve Holden <st...@holdenweb.com> wrote:

> If someone were to use a text editor which had always historically
> mangled whitespace I would find myself wondering why they found it
> necessary to restrict themselves to such stone-age tools.

I have yet to find an editor that allows me to, well, *edit*, more
comfortably than vi.

As to what it does with whitespace... What it does is exactly what
is most desireable in every other kind of file I edit.  I wouldn't
normally refer to it as "mangling" in the pejorative sense; it mostly
leaves spaces alone, but when preserving indentation from one line
to the next, uses tabs.  That, it turns out, is useful and desireable
in nearly all programming languages, and in particular, in all
the other programming languages I use.

I don't think it's fair to accuse tools of being "stone age" on the
grounds that they do something which most users want most of the
time by default.  The "no tabs, only spaces" thing is an interesting
idiosyncrasy of a particular community, which places a high value
on telling people to change everything about their computing
environment so they can appreciate how robust Python is when you
make a point of blaming any and all quirks or nuisances on tools.

We might as well insist that everyone use editors which automatically
add the braces to C code (such exist) when they complain about
the "effort" of typing matching braces.  Surely, if you have to
type braces by hand, the problem isn't with C, but with your
stone age editor?  Oh, wait.  That kind of smug dismissiveness
is considered rude unless it's done in *favor* of Python.

-s
--
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Chase  
View profile  
 More options Nov 6 2010, 8:00 am
Newsgroups: comp.lang.python
From: Tim Chase <python.l...@tim.thechases.com>
Date: Sat, 06 Nov 2010 07:00:20 -0500
Local: Sat, Nov 6 2010 8:00 am
Subject: Re: Compare source code
On 11/06/10 03:27, Seebs wrote:

> On 2010-11-06, Steve Holden<st...@holdenweb.com>  wrote:
>> If someone were to use a text editor which had always historically
>> mangled whitespace I would find myself wondering why they found it
>> necessary to restrict themselves to such stone-age tools.

> I have yet to find an editor that allows me to, well, *edit*, more
> comfortably than vi.

> As to what it does with whitespace... What it does is exactly what
> is most desireable in every other kind of file I edit.  I wouldn't
> normally refer to it as "mangling" in the pejorative sense; it mostly
> leaves spaces alone, but when preserving indentation from one line
> to the next, uses tabs.  That, it turns out, is useful and desireable
> in nearly all programming languages, and in particular, in all
> the other programming languages I use.

I think in a previous thread, you mentioned that you use nvi.
While I can't speak to the knobs-and-dials that nvi offers, in
vim, you can twiddle the 'expandtab' option (along with the
associated 'tabwidth' and 'shiftwidth' settings) to get whatever
behavior is deemed "correct" for the project you're working on.
So if I'm working on a project with PEP-8 4-spaces-per-indent, I'll

   :set sw=4 ts=4 et

and then if the file erroneously has tabs in it, I'll just issue

   :retab

to fix it[1].

-tkc

[1]
Yes, if you have string literals with tabs that you want to keep
in them, the solution is a little more complex, but doable;
though in such cases I'd recommend using "\t" instead of a
literal tab.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wooding  
View profile  
 More options Nov 6 2010, 8:21 am
Newsgroups: comp.lang.python
From: m...@distorted.org.uk (Mark Wooding)
Date: Sat, 06 Nov 2010 12:21:34 +0000
Local: Sat, Nov 6 2010 8:21 am
Subject: Re: Compare source code

Rustom Mody <rustompm...@gmail.com> writes:
> As for tools' brokeness regarding spaces/tabs/indentation heres a
> thread on the emacs list wherein emacs dev Stefan Monnier admits to
> the fact that emacs' handling in this regard is not perfect.

> http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/1b...

You've misunderstood.  That discussion is about configuring Emacs to not
do automatic indentation when the `tab' key is pressed or when
language-specific punctuation is entered.  It has very little to do with
tab characters in files.

-- [mdw]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rustom  
View profile  
 More options Nov 6 2010, 8:53 am
Newsgroups: comp.lang.python
From: rustom <rustompm...@gmail.com>
Date: Sat, 6 Nov 2010 05:53:25 -0700 (PDT)
Local: Sat, Nov 6 2010 8:53 am
Subject: Re: Compare source code
On Nov 6, 5:21 pm, m...@distorted.org.uk (Mark Wooding) wrote:

> Rustom Mody <rustompm...@gmail.com> writes:
> > As for tools' brokeness regarding spaces/tabs/indentation heres a
> > thread on the emacs list wherein emacs dev Stefan Monnier admits to
> > the fact that emacs' handling in this regard is not perfect.

> >http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/1b...

> You've misunderstood.  That discussion is about configuring Emacs to not
> do automatic indentation when the `tab' key is pressed or when
> language-specific punctuation is entered.  It has very little to do with
> tab characters in files.

The OP there clearly says he needs help in dealing consistently with
'tabbed' files.
Mixing up these 2 issues (actually 3) is the 'Eternal Holy War' that
Jamie Zawinski talks about here http://www.jwz.org/doc/tabs-vs-spaces.html

Note: I am in no way supporting the demand that python should suddenly
get 'braced' beacuse:

a. this would do too much violence to the essential -- 'executable-
pseudo-code' -- spirit of the language
b. Anyway for me personally python and haskell are two of my favorites
and one their common features is this: indentation == program
structure

I am only pointing to the fact that one of the widely used and super-
powerful editors is less than perfect in this regard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options Nov 6 2010, 9:53 pm
Newsgroups: comp.lang.python
Followup-To: comp.lang.python
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Sun, 07 Nov 2010 14:53:45 +1300
Local: Sat, Nov 6 2010 9:53 pm
Subject: Re: Compare source code
In message <slrnid9ln8.30fm.usenet-nos...@guild.seebs.net>, Seebs wrote:

> Specifically:

> Four spaces followed by a tab nearly always actually means "eight spaces"
> to most editors (and Python seems to treat it that way), but it's hard to
> tell. Worse, a tab may have been intended to be the same thing as four
> spaces, and someone was expecting it NOT to be the same as eight spaces...

Whereas explicitly-bracketed languages leave no ambiguity about how many
brackets you need and where.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Nov 6 2010, 10:19 pm
Newsgroups: comp.lang.python
From: Seebs <usenet-nos...@seebs.net>
Date: 07 Nov 2010 02:19:41 GMT
Local: Sat, Nov 6 2010 10:19 pm
Subject: Re: Compare source code
On 2010-11-07, Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> wrote:

> In message <slrnid9ln8.30fm.usenet-nos...@guild.seebs.net>, Seebs wrote:
>> Four spaces followed by a tab nearly always actually means "eight spaces"
>> to most editors (and Python seems to treat it that way), but it's hard to
>> tell. Worse, a tab may have been intended to be the same thing as four
>> spaces, and someone was expecting it NOT to be the same as eight spaces...
> Whereas explicitly-bracketed languages leave no ambiguity about how many
> brackets you need and where.

Well, the good ones don't.  :P  (I think the optional nature of brackets is
probably a flaw in C.  It would break too much existing code to fix it,
sadly.)

-s
--
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Nov 7 2010, 12:26 am
Newsgroups: comp.lang.python
From: Steven D'Aprano <st...@REMOVE-THIS-cybersource.com.au>
Date: 07 Nov 2010 04:26:16 GMT
Local: Sun, Nov 7 2010 12:26 am
Subject: Re: Compare source code

On Sun, 07 Nov 2010 14:53:45 +1300, Lawrence D'Oliveiro wrote:
> In message <slrnid9ln8.30fm.usenet-nos...@guild.seebs.net>, Seebs wrote:

>> Specifically:

>> Four spaces followed by a tab nearly always actually means "eight
>> spaces" to most editors (and Python seems to treat it that way), but
>> it's hard to tell. Worse, a tab may have been intended to be the same
>> thing as four spaces, and someone was expecting it NOT to be the same
>> as eight spaces...

> Whereas explicitly-bracketed languages leave no ambiguity about how many
> brackets you need and where.

Yes, and?

The way people[1] go on, and on, and ON about braces and indentation,
anyone would think that the hardest part of programming was deciding how
many times to press the tab key.

Besides, if we used reverse Polish notation, we wouldn't need either
brackets or indentation.

Forth rules-ly y'rs,

--
Steven

[1] I include myself.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Nov 7 2010, 12:28 am
Newsgroups: comp.lang.python
From: Seebs <usenet-nos...@seebs.net>
Date: 07 Nov 2010 04:28:29 GMT
Local: Sun, Nov 7 2010 12:28 am
Subject: Re: Compare source code
On 2010-11-07, Steven D'Aprano <st...@REMOVE-THIS-cybersource.com.au> wrote:

> On Sun, 07 Nov 2010 14:53:45 +1300, Lawrence D'Oliveiro wrote:
>> In message <slrnid9ln8.30fm.usenet-nos...@guild.seebs.net>, Seebs wrote:
>>> Four spaces followed by a tab nearly always actually means "eight
>>> spaces" to most editors (and Python seems to treat it that way), but
>>> it's hard to tell. Worse, a tab may have been intended to be the same
>>> thing as four spaces, and someone was expecting it NOT to be the same
>>> as eight spaces...
>> Whereas explicitly-bracketed languages leave no ambiguity about how many
>> brackets you need and where.
> Yes, and?

In context, I think the comment was sarcastic, referring to C's famous
ambiguities caused by optional braces.

-s
--
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options Nov 7 2010, 5:33 am
Newsgroups: comp.lang.python
Followup-To: comp.lang.python
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Sun, 07 Nov 2010 23:33:29 +1300
Local: Sun, Nov 7 2010 5:33 am
Subject: Re: Compare source code
In message <iapom0$k4...@speranza.aioe.org>, Tim Harig wrote:

> I agree with Seebs, Python is the only language I know that promotes
> the use of spaces over tabs; and there are equally picky syntaxs (ie,
> Makefiles) that mandate the use of tabs.

That’s widely conceded to be a misfeature of Make.

> I personally prefer tabs as it lets *me* decide how far the apparent
> indentations are in the code.

But they don’t. Other people can have different settings, and they will see
different indentations for your code, so you don’t have control at all. The
only way to ensure they see what you see is to use spaces, not tabs.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options Nov 7 2010, 5:37 am
Newsgroups: comp.lang.python
Followup-To: comp.lang.python
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Sun, 07 Nov 2010 23:37:11 +1300
Local: Sun, Nov 7 2010 5:37 am
Subject: Re: Compare source code
In message <iat59a$re...@reader1.panix.com>, Grant Edwards wrote:

> But without the colon, how are people who write programming editors
> going to know when to increase the indentation level as I enter code?

I hate editors (or editing modes) that think they know when to change
indentation level on me. Hate, hate, hate.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options Nov 7 2010, 5:39 am
Newsgroups: comp.lang.python
Followup-To: comp.lang.python
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Sun, 07 Nov 2010 23:39:40 +1300
Local: Sun, Nov 7 2010 5:39 am
Subject: Re: Compare source code
In message <8jftftFel...@mid.individual.net>, Neil Cerutti wrote:

> The handsome ':' terminator of if/elif/if statements allows us to
> omit a newline, conserving vertical space. This improves the
> readability of certain constructs.

> if x: print(x)
> elif y: print(y)
> else: print()

I would never do that. “Conserving vertical space” seems a stupid reason for
doing it. In C, I even go the opposite way:

    if (x)
      {
        printf(..., x);
      }
    else if (y)
      {
        printf(..., y);
      }
    else
      {
        printf(...);
      } /*if*/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options Nov 7 2010, 5:40 am
Newsgroups: comp.lang.python
Followup-To: comp.lang.python
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Sun, 07 Nov 2010 23:40:18 +1300
Local: Sun, Nov 7 2010 5:40 am
Subject: Re: Compare source code
In message <87sjzige0r....@benfinney.id.au>, Ben Finney wrote:

That’s implicit, not explicit.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wooding  
View profile  
 More options Nov 7 2010, 7:57 am
Newsgroups: comp.lang.python
From: m...@distorted.org.uk (Mark Wooding)
Date: Sun, 07 Nov 2010 12:57:13 +0000
Local: Sun, Nov 7 2010 7:57 am
Subject: Re: Compare source code

Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> writes:
> I would never do that. “Conserving vertical space” seems a stupid reason for
> doing it.

Vertical space is a limiting factor on how much code one can see at a
time.  I use old-fashioned CRT monitors with 4x3 aspect ratios and
dizzyingly high resolution; I usually work with two columns of code, but
can get four if I give up on things like xterms.  I still find it rather
limiting: I have to remember everything which won't fit on the screen.

I've no idea how people manage with these ridiculous widescreen monitors.

-- [mdw]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Edwards  
View profile  
 More options Nov 7 2010, 8:23 am
Newsgroups: comp.lang.python
From: Grant Edwards <inva...@invalid.invalid>
Date: Sun, 7 Nov 2010 13:23:26 +0000 (UTC)
Local: Sun, Nov 7 2010 8:23 am
Subject: Re: Compare source code
On 2010-11-07, Mark Wooding <m...@distorted.org.uk> wrote:

> Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> writes:

>> I would never do that. "Conserving vertical space" seems a stupid
>> reason for doing it.

> Vertical space is a limiting factor on how much code one can see at a
> time.

And one study I read shoed that how much code one can see at a time
directly affects the number of bugs introduced while editing. The
more code you could see at a time, the better off you were (at least
as far as the measurements in that study went).  IOW, editing a loop
or other control structure where you couldn't see both ends was
problematic. Conserving vertical space avoids that problem.

> I use old-fashioned CRT monitors with 4x3 aspect ratios and
> dizzyingly high resolution; I usually work with two columns of code, but
> can get four if I give up on things like xterms.  I still find it rather
> limiting: I have to remember everything which won't fit on the screen.

> I've no idea how people manage with these ridiculous widescreen monitors.

Rotate them 90 degrees?  My monitors will do that mechanically, but
I've never bothered to try setting up X to handle it. (I bought 4:3
monitors before they got replaced by cheap 16:8 screens).

--
Grant


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Edwards  
View profile  
 More options Nov 7 2010, 8:24 am
Newsgroups: comp.lang.python
From: Grant Edwards <inva...@invalid.invalid>
Date: Sun, 7 Nov 2010 13:24:21 +0000 (UTC)
Local: Sun, Nov 7 2010 8:24 am
Subject: Re: Compare source code
On 2010-11-07, Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> wrote:

If you can _see_ it, how is it implicit?

--
Grant


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Holden  
View profile  
 More options Nov 7 2010, 9:26 am
Newsgroups: comp.lang.python
From: Steve Holden <st...@holdenweb.com>
Date: Sun, 07 Nov 2010 09:26:33 -0500
Local: Sun, Nov 7 2010 9:26 am
Subject: Re: Compare source code
On 11/7/2010 8:23 AM, Grant Edwards wrote:
[...]

> (I bought 4:3 monitors before they got replaced by cheap 16:8
> screens)

I think you'll find the new aspect ration is 16:9.

regards
 Steve
--
Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon 2011 Atlanta March 9-17       http://us.pycon.org/
See Python Video!       http://python.mirocommunity.org/
Holden Web LLC                 http://www.holdenweb.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roy Smith  
View profile  
 More options Nov 7 2010, 9:39 am
Newsgroups: comp.lang.python
From: Roy Smith <r...@panix.com>
Date: Sun, 07 Nov 2010 09:39:15 -0500
Local: Sun, Nov 7 2010 9:39 am
Subject: Re: Compare source code
In article <87oca1b8ba.fsf....@metalzone.distorted.org.uk>,
 m...@distorted.org.uk (Mark Wooding) wrote:

> Vertical space is a limiting factor on how much code one can see at a
> time.

Yup.  Over three decades of programming, my personal upper bound for how
long a function should be has always been "fits on one screen".  In the
old days, that meant a CRT with 24 lines (by 80 columns).  These days,
it means about 100-120 lines (depending on how squinty-eyed I'm willing
to go).  Thus, over the years, my idea of how long a function can be has
grown several-fold.

I still try to keep things well under 100 lines per function.  I'm
willing, however, to tolerate anything up to where I can no longer see
the entire thing and the font is still big enough to read easily.

Of course, in the real old days, with 66 lines to an 11-inch page of
line printer paper, and 8 foot high ceilings, you could tape about 500
lines of code to the wall, but I digress :-)

> I've no idea how people manage with these ridiculous widescreen monitors.

My 15-inch laptop has 1680 x 1050 resolution (the new high-res flavor of
the MacBook Pro).  I love it.  Mostly I use the screen real estate for
one main shell window where I'm doing most of my work, and a variety of
other windows (browser, pdf viewer, etc) which contain documents I'm
referring to in support of what I'm doing in my main window.

At work, I've got two 1920 x 1080 monitors side-by-side.  I find I don't
use the second monitor much.  I'll generally shove some windows over
there which I watch, but almost never interact with.  Mostly things
tailing log files or some other kind of status monitor function.

I also find that to keep the angle of view comfortable, I can't sit as
close to the monitors as I usually keep my laptop screen.  So, I have to
make the font size a little larger, which in turn means fewer lines of
code visible.  Ergonomics is complicated.

I'm thinking of rotating the monitors 90 degrees, running them in
side-by-side portrait mode.  I know X11 can handle the video rotation,
but I'm not sure I've got the right mounting brackets.

Another factor is that the Mac display is sharp as a tack compared to my
big LCD panels at work.  I think it's party the display hardware itself,
and partly that the Mac's text rendering just blows Linux out of the
water.  I can easily read text on my laptop at much smaller font sizes
than I can on my desk monitors at work.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Chase  
View profile  
 More options Nov 7 2010, 9:52 am
Newsgroups: comp.lang.python
From: Tim Chase <python.l...@tim.thechases.com>
Date: Sun, 07 Nov 2010 08:52:28 -0600
Local: Sun, Nov 7 2010 9:52 am
Subject: Re: Compare source code
On 11/07/10 08:26, Steve Holden wrote:

> On 11/7/2010 8:23 AM, Grant Edwards wrote:
> [...]
>> (I bought 4:3 monitors before they got replaced by cheap 16:8
>> screens)

> I think you'll find the new aspect ration is 16:9.

Unless that's why they're cheap...

dual-16x9-widescreen-in-portrait-mode-is-a-wonderful-thing'ly,

-tkc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Edwards  
View profile  
 More options Nov 7 2010, 10:46 am
Newsgroups: comp.lang.python
From: Grant Edwards <inva...@invalid.invalid>
Date: Sun, 7 Nov 2010 15:46:34 +0000 (UTC)
Local: Sun, Nov 7 2010 10:46 am
Subject: Re: Compare source code
On 2010-11-07, Steve Holden <st...@holdenweb.com> wrote:

> On 11/7/2010 8:23 AM, Grant Edwards wrote:
> [...]
>> (I bought 4:3 monitors before they got replaced by cheap 16:8
>> screens)

> I think you'll find the new aspect ration is 16:9.

I knew that.  My keyboard didn't.

I recently bought a close-out Lenovo T500 Thinkpad from their outlet
because current models are now 16:9 instead of the older 16:10.  My
old 4:3 Thinkpad was still going strong, but I decided I'd better get
a 16:10 while I could -- though I'd still prefer a 4:3.

--
Grant


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ethan Furman  
View profile  
 More options Nov 7 2010, 11:20 am
Newsgroups: comp.lang.python
From: Ethan Furman <et...@stoneleaf.us>
Date: Sun, 07 Nov 2010 08:20:11 -0800
Local: Sun, Nov 7 2010 11:20 am
Subject: Re: Compare source code

Seebs wrote:
> On 2010-11-05, Ethan Furman <et...@stoneleaf.us> wrote:
>> The verifiable benefit for me is ease of use, ease of thought, ease of
>> typing... I realize these are not benefits for everyone, but they are
>> for some -- and I would venture a guess that the ease of thought benefit
>> is one of the primary reasons Python is popular.  I am definitely one of
>> those that think indentation based structure is one of Python's best
>> features.

> Could you explain more the "ease of thought" thing?  I haven't yet noticed
> it, but it might be something to look out for as I get more experienced.

Most if my programming experience is in FoxPro versions 2 and 6.
Control structures start with if, for, do case, do while, with,
procedure, and (I think) function.  Control structures end with endif,
endfor, endcase, endwhile, endwith, endproc, and (I think) endfunc.

In Python, control structures start with if, for, while, try, def, and
class, and each one ends with a dedent.

This really comes into play when developing -- want to change that if to
a while?  Go ahead!  And no need to worry about tracking down the
closing endif to change it to endwhile, plus it's less clutter on the
screen.

I also really like the dynamic typing and not having to declare nor
pre-initialize variable names, as well as the lack of a true global
namespace.

All in all, I am able to think about the code and what I want to do, and
not think about the compiler/interpreter and keeping it happy.

Hope this helps.

~Ethan~


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ethan Furman  
View profile  
 More options Nov 7 2010, 11:36 am
Newsgroups: comp.lang.python
From: Ethan Furman <et...@stoneleaf.us>
Date: Sun, 07 Nov 2010 08:36:01 -0800
Local: Sun, Nov 7 2010 11:36 am
Subject: Re: Compare source code

Lawrence D'Oliveiro wrote:
> In message <iapom0$k4...@speranza.aioe.org>, Tim Harig wrote:

>> I personally prefer tabs as it lets *me* decide how far the apparent
>> indentations are in the code.

> But they don’t. Other people can have different settings, and they will see
> different indentations for your code

That's exactly the point -- each person can decide what level of
indentation they prefer to look at.

~Ethan~


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Holden  
View profile  
 More options Nov 7 2010, 11:39 am
Newsgroups: comp.lang.python
From: Steve Holden <st...@holdenweb.com>
Date: Sun, 07 Nov 2010 11:39:38 -0500
Local: Sun, Nov 7 2010 11:39 am
Subject: Re: Compare source code
On 11/7/2010 10:46 AM, Grant Edwards wrote:
> On 2010-11-07, Steve Holden <st...@holdenweb.com> wrote:
>> On 11/7/2010 8:23 AM, Grant Edwards wrote:
>> [...]
>>> (I bought 4:3 monitors before they got replaced by cheap 16:8
>>> screens)

>> I think you'll find the new aspect ration is 16:9.

"aspect ration". Sheesh.

> I knew that.  My keyboard didn't.

> I recently bought a close-out Lenovo T500 Thinkpad from their outlet
> because current models are now 16:9 instead of the older 16:10.  My
> old 4:3 Thinkpad was still going strong, but I decided I'd better get
> a 16:10 while I could -- though I'd still prefer a 4:3.

The thing that *really* pisses me off is that you *used* to be able to
get 1920 x 1200 15" displays, but *now* you are lucky to go above 1080
vertical pixels even in a 17" laptop display. I don't want the
resolution of my displays dictated by the resolution of my (current)
media, yet it seems that's what's happened in the laptop market.

I got a Lenovo T60 a while back as a touchpad machine. Wondering about
switching that to Linux, but I haven't seen any touchpad distros in
action yet.

regards
 Steve
--
Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon 2011 Atlanta March 9-17       http://us.pycon.org/
See Python Video!       http://python.mirocommunity.org/
Holden Web LLC                 http://www.holdenweb.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Nov 7 2010, 12:50 pm
Newsgroups: comp.lang.python
From: Seebs <usenet-nos...@seebs.net>
Date: 07 Nov 2010 17:50:01 GMT
Local: Sun, Nov 7 2010 12:50 pm
Subject: Re: Compare source code
On 2010-11-07, Grant Edwards <inva...@invalid.invalid> wrote:

> On 2010-11-07, Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> wrote:
>> In message <87sjzige0r....@benfinney.id.au>, Ben Finney wrote:
>>> The more general answer is: the block is explicitly ended where the
>>> indentation ends.
>> That's implicit, not explicit.
> If you can _see_ it, how is it implicit?

Humans can see negative space.  It's still implicit.

-s
--
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seebs  
View profile  
 More options Nov 7 2010, 12:41 pm
Newsgroups: comp.lang.python
From: Seebs <usenet-nos...@seebs.net>
Date: 07 Nov 2010 17:41:10 GMT
Local: Sun, Nov 7 2010 12:41 pm
Subject: Re: Compare source code
On 2010-11-07, Mark Wooding <m...@distorted.org.uk> wrote:

> I've no idea how people manage with these ridiculous widescreen monitors.

Side space used for Other Stuff.  It takes some reworking of the layout,
but overall I sorta like it now.

-s
--
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nos...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 151 - 175 of 191 < Older  Newer >
« Back to Discussions « Newer topic     Older topic »