Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97373

Re: Check if a given value is out of certain range

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'heavily': 0.04; 'messages.': 0.04; 'test,': 0.05; 'everybody,': 0.07; 'mouse': 0.07; 'seemed': 0.07; 'cc:addr:python-list': 0.09; 'editor.': 0.09; 'effect.': 0.09; 'exp': 0.09; 'experimental': 0.09; 'macro.': 0.09; 'macros': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'sub': 0.09; 'typed': 0.09; 'do,': 0.15; "'this": 0.16; 'advice,': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'construct.': 0.16; 'contrived': 0.16; 'emacs,': 0.16; 'experiments': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'lisp': 0.16; 'longer.': 0.16; 'macro': 0.16; 'macro,': 0.16; 'macros.': 0.16; 'measuring': 0.16; 'message-id:@fido.openend.se': 0.16; 'negation': 0.16; 'pry': 0.16; 'reason.': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'sorts': 0.16; 'task.': 0.16; 'thinking,': 0.16; 'throughput': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'useless': 0.16; 'usual.': 0.16; 'comparing': 0.18; 'hacking': 0.18; 'laura': 0.18; 'typing': 0.18; 'load': 0.20; 'all,': 0.20; 'cc:addr:python.org': 0.20; 'fix': 0.21; '(the': 0.22; 'cc:2**1': 0.22; 'fairly': 0.22; 'meant': 0.22; 'keyboard': 0.22; 'bit': 0.23; 'seems': 0.23; '(where': 0.23; 'nearly': 0.23; 'examples': 0.24; 'thus': 0.24; 'url:edu': 0.24; 'rest': 0.26; 'mostly': 0.27; 'not.': 0.27; 'question': 0.27; 'tend': 0.27; 'idea': 0.28; 'went': 0.28; 'fine': 0.28; 'earliest': 0.29; 'factor': 0.29; 'faster,': 0.29; 'measure': 0.29; 'mid': 0.29; 'received:se': 0.29; 'sentence': 0.29; 'url:se': 0.29; 'cc:no real name:2**1': 0.29; 'classes': 0.30; 'class.': 0.30; 'lab': 0.30; 'task': 0.30; 'another': 0.32; 'especially': 0.32; 'reported': 0.32; 'getting': 0.33; 'changed': 0.33; 'problem': 0.33; 'common': 0.33; 'editor': 0.34; 'weeks': 0.34; 'matter.': 0.66; 'everybody': 0.67; 'night': 0.67; 'superior': 0.67; 'talking': 0.67; 'life': 0.67; 'home': 0.67; 'day': 0.67; 'subject': 0.70; 'cold': 0.70; 'teach': 0.70; 'sweet': 0.72; 'url:http': 0.75; 'intelligent': 0.76; 'lack': 0.76; 'researchers': 0.76; 'score': 0.76; 'skill': 0.76; 'saw': 0.77; "'we": 0.84; '165': 0.84; 'accurately': 0.84; 'actually,': 0.84; 'bored': 0.84; 'chase,': 0.84; 'coffee': 0.84; 'experiment': 0.84; 'hard.': 0.84; 'header:In-reply-to:1': 0.84; 'hostile': 0.84; 'hurry,': 0.84; 'subject:value': 0.84; 'url:cd': 0.84; 'url:stanford': 0.84; 'cognitive': 0.91; 'grew': 0.91; 'lady': 0.91; 'profession': 0.91; 'proficient,': 0.91; 'reasoning': 0.91; 'staff,': 0.91; 'task,': 0.91; 'toronto': 0.91; 'url:ved': 0.91; 'url:j': 0.93; 'url:sa': 0.93; 'url:url': 0.93; 'subject:Check': 0.95; 'hand,': 0.97; 'taught': 0.97; 'political': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=openend.se; s=default; t=1443874347; bh=ZyYH0xhvtsysNvIULWfk+5M9Z0joSYoaWLXVbjbhFC4=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=p84JrQHjVq0VyqO/rH54rbLSKmbEwOp2Wo5N32FYATeZCMbyDje99gLSahZ/mU8Ud Rwb5Jqx9wmk1I9Jrn4jmsPOka09eKVrm2MPgqiwvMGx5Dtq1+fHS5YVFwkJg1KAenx pzQwsEyw9NDw7JuKKnRnrIcN7h55WSb/gdRxPoeU=
To "Steven D'Aprano" <steve@pearwood.info>
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: Check if a given value is out of certain range
In-reply-to <560fadf3$0$1610$c3e8da3$5496439d@news.astraweb.com>
References <mailman.229.1443511549.28679.python-list@python.org> <87r3le1ht3.fsf@elektro.pacujo.net> <muk9i9$h34$1@reader1.panix.com> <560fadf3$0$1610$c3e8da3$5496439d@news.astraweb.com>
Comments In-reply-to "Steven D'Aprano" <steve@pearwood.info> message dated "Sat, 03 Oct 2015 20:29:05 +1000."
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-ID <16415.1443874340.1@fido>
Content-Transfer-Encoding quoted-printable
Date Sat, 03 Oct 2015 14:12:20 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sat, 03 Oct 2015 14:12:27 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.363.1443874367.28679.python-list@python.org> (permalink)
Lines 129
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1443874367 news.xs4all.nl 23856 [2001:888:2000:d::a6]:53669
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97373

Show key headers only | View raw


Actually, the fact that adults have more difficulty processing
negations is one of the earliest things proven experimentally
in experimental psychology.

Clark, H., & Chase, W. (1972). On the process of comparing sentences against pictures. Cognitive Psychology, 3, 472–517.

is one of the most heavily cited experiments in the field.

The question is _why_?

The early assumption was that the negation is conceptually more
difficult.  People think logically, and a negation is a harder
sentence to construct.

Recently, this idea has come to be questioned:
see
http://www.google.se/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CB0QFjAAahUKEwisvv_6lKbIAhXo8XIKHX32BKE&url=http%3A%2F%2Flangcog.stanford.edu%2Fpapers_new%2Fnordmeyer-2015-underrev.pdf&usg=AFQjCNEaPmluLtZs6aeAHgnyCCLEDazJdg

which I shortened to:
http://bit.ly/1OOfK46

It seems that people tend to hear what they expect to hear, and that
effect overwhelms any 'this is harder to constuct logically' effect.

Also, the 'mouse is quicker' experiment was rather more nuanced than
you reported.  It seems when measuring 'what is faster' the cognitive
load is important.  Time seems to go faster when you are thinking
harder about something, than when you are not.  (i.e. how did my
coffee get cold?  I just started hacking on this thing?)  It seems
that mouse editing was less of a cognitive load than typing, for
the people studied, thus they reported that keyboard was faster,
when it wasn't for them.

But

the experiment was replicated among secretaries who had superior typing
skills (and used emacs a lot).  For a lot of them, moving text by mouse
was not faster than using keyboard macros.  But the limiting factor
seemed to be 'how hard did I have to think about it' -- if you move
things by keyboard macro without thinking, then you won't report that
it takes you time, and you won't accurately report how long it takes
to do the task.

Thus for this experiment, the conclusion was that people were a whole
lot better at telling 'how hard did this make me think' than 'how
long did it take me to do the job'.  

Also, when you changed the requirements to 'reformat text all day long'
a huge number of people could get a lot more work done using emacs than
using the mouse editor.

We ran  both of these experiemnts in the coputer graphics lab at the
University of Toronto as a joint csc/psych exp in the mid 1980s, and
our conclusion at the time was that, for 'all day long' sorts of
tasks what was most important was boredom.  Once the subject got
bored with the task, it took longer.

For me the experiment was wonderful for another reason.  The
University of Toronto has long believed that their secretaries weren't
intelligent enough to use emacs, and had gone to particular effort to
design an easier editor for them to use.  But the secretaries of
the Political Science department, who used to come down to the
department of Zoology (where I worked) to use our pdp-11/44 for
text formating, and me (the undergraduate they hired to help
Zoologists format their graduate theses prior to having them
phototypeset) for advice, once saw me fix a problem by writing an
emacs macro, and hauling their document into emacs and using it.

They were entranced.  And wondered if I could teach them how to do it.
I thought, fine enough, and so taught classes in how to use emacs to
about 6 of them for 3 nights a week one summer.

And it turned out that everybody, including one sweet lady whose powers
of reasoning was seriously sub par, learned how to use emacs.  She learned
mostly by rote, but she could do it.  And the first two weeks of learning
how to write macros was very hard.  I learned a lot about how not to
teach things in that class. :)  So a good bit of the problem was lack
of skill in the teacher.

But once we started on writing them for real life tasks they had, and
not useless contrived examples I came up with, it went a lot better.
And soon they were quite proficient, and Political Science had its own
set of common emacs macros.

I got a real understanding of how much 'retype it by hand, it is
faster' you do, if your normal rate of typing is 165 wpm or more.
Especially if you grew up with paper, not computers, where retyping it
was considered very normal ...

At any rate when I heard about this experiment I got the secretaries
to compete, for fun.  The secretaries with their own emacs macros beat
the heck out of everybody else at 'copying and moving text around',
which was, after all, something they did all of the time.

The researchers thought that this wasn't a fair test, as the playing
field was so far from level.  The secretaries thought they could
better their score if they had been given the task the night before --
as they would have designed an even better emacs macro.  And, of course,
if they had a lot of that particular task to do, they would have
'had Caroline write one and teach it to us', as was usual.

Which got people down to the heart of the matter.  People wanted to
measure keyboard vs mouse efficiency, but as far as the secretaries
were concerned any test done 'for fun' didn't measure up to their real
lives, where getting more throughput meant 'we don't have to work
overtime' and 'only one secretary works in the office Friday after
3:30 in case a professor needs something typed up in a hurry, the
rest of us go home early'.

They were fairly hostile to the idea of inflicting the mouse editor
on the university support staff, unless it came with emacs lisp built
in.  And there was considerable 'when you pry my emacs away from my
cold dead fingers' sentiment.

These days, I suspect, the Political Science professors at U of T
do their own typing.  The profession of typist seems to be nearly
extinct.  And voice-to-text is the next big thing.

But we already know that many people find talking for a long time
itself unpleasant and exhausting.  I like my email.  I hate listening
to voice messages.  But, should we all live long enough, will
listening to people become the only option?

Laura

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Check if a given value is out of certain range Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-09-29 16:48 +0000
  Re: Check if a given value is out of certain range Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-29 21:32 +0100
    Re: Check if a given value is out of certain range sohcahtoa82@gmail.com - 2015-09-30 11:31 -0700
      Re: Check if a given value is out of certain range Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-30 23:31 +0100
        Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-02 04:18 +1000
          Re: Check if a given value is out of certain range John Gordon <gordon@panix.com> - 2015-10-01 18:20 +0000
            Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-02 05:19 +1000
              Re: Check if a given value is out of certain range John Gordon <gordon@panix.com> - 2015-10-01 19:41 +0000
                Re: Check if a given value is out of certain range Marko Rauhamaa <marko@pacujo.net> - 2015-10-01 22:59 +0300
                Re: Check if a given value is out of certain range Emile van Sebille <emile@fenx.com> - 2015-10-01 13:15 -0700
                Re: Check if a given value is out of certain range John Gordon <gordon@panix.com> - 2015-10-01 21:45 +0000
                Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-10-01 16:03 -0600
                Re: Check if a given value is out of certain range Chris Kaynor <ckaynor@zindagigames.com> - 2015-10-01 15:48 -0700
                Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-10-01 16:01 -0600
                Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-03 20:29 +1000
                Re: Check if a given value is out of certain range Bartc <bc@freeuk.com> - 2015-10-03 11:48 +0100
                Re: Check if a given value is out of certain range Laura Creighton <lac@openend.se> - 2015-10-03 14:12 +0200
                Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-03 23:51 +1000
                Re: Check if a given value is out of certain range wxjmfauth@gmail.com - 2015-10-03 07:19 -0700
                Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-05 00:47 +1100
                Re: Check if a given value is out of certain range Rustom Mody <rustompmody@gmail.com> - 2015-10-04 19:28 -0700
                Re: Check if a given value is out of certain range Rustom Mody <rustompmody@gmail.com> - 2015-10-04 19:32 -0700
                Re: Check if a given value is out of certain range Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-10-03 11:49 -0400
          Re: Check if a given value is out of certain range Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-10-02 00:34 +0100
      Re: Check if a given value is out of certain range Michiel Overtoom <motoom@xs4all.nl> - 2015-10-05 10:18 +0200
        Re: Check if a given value is out of certain range Jussi Piitulainen <harvesting@makes.email.invalid> - 2015-10-05 13:08 +0300
          Re: Check if a given value is out of certain range Marko Rauhamaa <marko@pacujo.net> - 2015-10-05 14:42 +0300
            Re: Check if a given value is out of certain range Chris Angelico <rosuav@gmail.com> - 2015-10-06 00:10 +1100
              Re: Check if a given value is out of certain range Marko Rauhamaa <marko@pacujo.net> - 2015-10-05 16:25 +0300
      Re: Check if a given value is out of certain range Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-10-05 10:19 +0100
  Re: Check if a given value is out of certain range Random832 <random832@fastmail.com> - 2015-09-29 17:04 -0400
    Re: Check if a given value is out of certain range Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-30 07:57 +0200
  Re: Check if a given value is out of certain range Emile van Sebille <emile@fenx.com> - 2015-09-29 14:07 -0700
  Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-29 15:07 -0600
    Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-09-30 11:55 +1000
      Re: Check if a given value is out of certain range Random832 <random832@fastmail.com> - 2015-09-29 23:08 -0400
        Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-09-30 13:14 +1000
          Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-29 23:54 -0600
  Re: Check if a given value is out of certain range Tim Chase <python.list@tim.thechases.com> - 2015-09-29 18:44 -0500
    Re: Check if a given value is out of certain range alister <alister.nospam.ware@ntlworld.com> - 2015-09-30 09:41 +0000
      Re: Check if a given value is out of certain range John Gordon <gordon@panix.com> - 2015-09-30 15:42 +0000
      Re: Check if a given value is out of certain range Grant Edwards <invalid@invalid.invalid> - 2015-09-30 15:56 +0000
        Re: Check if a given value is out of certain range Marko Rauhamaa <marko@pacujo.net> - 2015-09-30 21:06 +0300
          Re: Check if a given value is out of certain range alister <alister.nospam.ware@ntlworld.com> - 2015-09-30 20:19 +0000
            Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-30 14:46 -0600
              Re: Check if a given value is out of certain range alister <alister.nospam.ware@ntlworld.com> - 2015-10-01 08:33 +0000
                Re: Check if a given value is out of certain range Chris Angelico <rosuav@gmail.com> - 2015-10-01 18:37 +1000
                Re: Check if a given value is out of certain range alister <alister.nospam.ware@ntlworld.com> - 2015-10-01 08:48 +0000
                Re: Check if a given value is out of certain range Ian Kelly <ian.g.kelly@gmail.com> - 2015-10-01 08:14 -0600
              Re: Check if a given value is out of certain range Steven D'Aprano <steve@pearwood.info> - 2015-10-02 04:59 +1000
            Re: Check if a given value is out of certain range Laura Creighton <lac@openend.se> - 2015-10-01 09:40 +0200
            Re: Check if a given value is out of certain range Laura Creighton <lac@openend.se> - 2015-10-01 09:58 +0200

csiph-web