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


Groups > comp.lang.python > #51872

Re: Does Python 'enable' poke and hope programming?

Newsgroups comp.lang.python
Date 2013-08-03 10:30 -0700
References <6b1769f8-222b-4953-99c8-a1d73cec3d60@googlegroups.com>
Message-ID <a4b05e37-ffa3-48ab-b49d-4a41b152b5e9@googlegroups.com> (permalink)
Subject Re: Does Python 'enable' poke and hope programming?
From CM <cmpython@gmail.com>

Show all headers | View raw


Wayne, thanks for your thoughts.  

I am all for the scientific method--in understanding the natural world, which doesn't come with a manual.  But Python is an artificial system designed by mere people (as well as Guido), and, as such, does have a manual.  Ideally, there should be very little need for experimentation and "hypotheses".  That said, yes, when learning the language a little experimentation along the way is fine, and error messages Python throws back to you or unexpected results can and should be a form of real time instruction.

But what I meant is that if one is writing a program, there is a way to **know**--without experimentation--what a particular set of code is going to do.  This is often cognitively demanding work, but it is possible.  And my point is that it is, in the end, far more efficient to be disciplined and do that work rather than try to take shortcuts by simply trying a few things until one of them works.  

In sum:  experimentation is for when you don't know what you're doing and there is no manual; but, after the initial learning time, you *should* know what you're doing and you should have the manual handy, and therefore the time for experimentation is largely over.


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


Thread

Does Python 'enable' poke and hope programming? CM <cmpython@gmail.com> - 2013-08-01 10:57 -0700
  Re: Does Python 'enable' poke and hope programming? Neil Cerutti <neilc@norwich.edu> - 2013-08-01 18:08 +0000
  Re: Does Python 'enable' poke and hope programming? Chris Angelico <rosuav@gmail.com> - 2013-08-01 19:30 +0100
  Re: Does Python 'enable' poke and hope programming? Dave Angel <davea@davea.name> - 2013-08-01 19:58 +0000
  Re: Does Python 'enable' poke and hope programming? Sam Whitehead <demon.exh@gmail.com> - 2013-08-01 17:52 -0700
  Re: Does Python 'enable' poke and hope programming? Vito De Tullio <vito.detullio@gmail.com> - 2013-08-02 05:34 +0200
  Re: Does Python 'enable' poke and hope programming? Wayne Werner <wayne@waynewerner.com> - 2013-08-03 07:49 -0500
  Re: Does Python 'enable' poke and hope programming? CM <cmpython@gmail.com> - 2013-08-03 10:30 -0700
    Re: Does Python 'enable' poke and hope programming? Chris Angelico <rosuav@gmail.com> - 2013-08-03 18:39 +0100
    Re: Does Python 'enable' poke and hope programming? Ethan Furman <ethan@stoneleaf.us> - 2013-08-03 11:31 -0700

csiph-web