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


Groups > comp.lang.python > #78843

Re: Practice question

X-Received by 10.182.24.8 with SMTP id q8mr7485233obf.25.1412786497691; Wed, 08 Oct 2014 09:41:37 -0700 (PDT)
X-Received by 10.50.66.179 with SMTP id g19mr168167igt.17.1412786497585; Wed, 08 Oct 2014 09:41:37 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no6567396igb.0!news-out.google.com!rp1ni22143igb.0!nntp.google.com!uq10no6567387igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Wed, 8 Oct 2014 09:41:36 -0700 (PDT)
In-Reply-To <mailman.14683.1412785639.18130.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=59.95.28.128; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui
NNTP-Posting-Host 59.95.28.128
References <h2j33adothf9uctcdp5psqk2cclr01961r@4ax.com> <mailman.14620.1412552037.18130.python-list@python.org> <9e674b54-92e8-469b-ba68-da593fc8564a@googlegroups.com> <mailman.14635.1412600656.18130.python-list@python.org> <eb7c4d3d-045e-4f38-bdb1-c26126ea5b12@googlegroups.com> <mailman.14648.1412614332.18130.python-list@python.org> <b3c30cb9-6b04-402c-8adf-fe5a13551679@googlegroups.com> <5433004e$0$2916$c3e8da3$76491128@news.astraweb.com> <abd0048c-7e59-42a0-9dc6-cc03f7985b8f@googlegroups.com> <mailman.14683.1412785639.18130.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fca98282-ae55-495c-8bc2-b450b1560227@googlegroups.com> (permalink)
Subject Re: Practice question
From Rustom Mody <rustompmody@gmail.com>
Injection-Date Wed, 08 Oct 2014 16:41:37 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:78843

Show key headers only | View raw


On Wednesday, October 8, 2014 9:58:11 PM UTC+5:30, Skip Montanaro wrote:
> On Wed, Oct 8, 2014 at 11:14 AM, Rustom Mody  wrote:
> > So pushing beginners away from print can push them up the learning
> > curve more quickly

> Or more quickly discourage them. I still use print for all sorts of
> things. In my opinion, there is often no need for fancy loggers,
> str.format, or the write method of file-like objects. Print will often
> get you a "good enough" result faster than the other means.

Well I'm not talking of people like you!!
Nor of more sophisticated tools than print.

I am talking of the fact that an absolute basic sine qua non for
beginners is to be able to structure programs:

- breaking up a complex expression into sub-expressions
- abstracting out a sub-expression into a function with an appropriate
  parameterization
- inverses of the above when the current cut is sub-optimal

etc etc... what is nowadays fashionably called 'refactoring'

And for that the noob needs to learn to write return-ing function
where he currently writes a print-ing function.

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


Thread

Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 19:02 -0400
  Re: Practice question Roy Smith <roy@panix.com> - 2014-10-05 19:06 -0400
  Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 19:14 -0400
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:07 -0400
      Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 21:25 -0400
      Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:41 +0000
  Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-05 18:33 -0500
    Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-05 19:47 -0700
      Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-06 08:04 -0500
        Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 09:23 -0700
          Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 03:52 +1100
            Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 10:05 -0700
              Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 04:13 +1100
              Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-06 20:49 +0000
                Re: Practice question "Redge @ Versalytics.com" <versalytics@gmail.com> - 2014-10-06 20:54 -0400
                Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:14 -0700
                Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-09 03:23 +1100
                Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-08 11:27 -0500
                Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:41 -0700
  Re: Practice question Terry Reedy <tjreedy@udel.edu> - 2014-10-05 19:47 -0400
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:18 -0400
      Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:48 +0000
        Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-07 05:43 -0700
  Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-05 16:24 -0700
  Re: Practice question Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-07 01:46 +0000
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-06 22:06 -0400
      Re: Practice question alister <alister.nospam.ware@ntlworld.com> - 2014-10-09 15:28 +0000

csiph-web