Re: reduce()--what is it good for? (was: Re: reduce() anomaly?)

From: Georgy Pruss (see_signature___at_hotmail.com)
Date: 11/18/03


Date: Tue, 18 Nov 2003 06:06:27 GMT


"Steve Lamb" <grey@despair.dmiyu.org> wrote in message news:slrnbrio3f.s51.grey@dmiyu.org...
| <..>
| Because as much as it helps when reading the code to only have to learn a
| minimal set of controls the same applies to writing code as well. When I
| approach a problem I don't have to agonize over "well, should I do a
| do...until(), a for(;;), a while(), or something else?" It breaks down to
| this.

I can't agree here. I NEVER wondered which of constructions should I
use in any particular case. I just solved the problem and wrote its solution
in that language and the language HELPED me to express myself clearly.

| Is it a sequence? For. Is it a condition to be met? While. There,
| done, move along.

Aha. Half of all the conditions in real Python programs are 1 or True. :-)

| --
| Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
| PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
| -------------------------------+---------------------------------------------

-- 
Georgy Pruss
E^mail: 'ZDAwMTEyMHQwMzMwQGhvdG1haWwuY29t\n'.decode('base64')


Relevant Pages

  • Re: I took your advice, Art
    ... 40 years ago I was working for Johnson Controls in Sacramto ... Life is not always where the money is, ... If you've been reading my snot, ... finance, banking (as relates to the world economy, ...
    (sci.research.careers)
  • Re: top 10 reasons emulation is not a good as the real arcade
    ... are better than emulation (besides controls)? ... The history of the actual cab. ... The discovery's made inside the cab; could be a dead rat, ... after reading Al's page on Cap kits - THANKS AL!) ...
    (rec.games.video.arcade.collecting)
  • Re: objects gone, please help
    ... Robin S. ... sometimes I muck something up and wish I could go back one step. ... I suspected some controls UNder a TabControl page I made, ... objects and writing code. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: objects gone, please help
    ... "RobinS" wrote: ... I suspected some controls UNder a TabControl page I made, ... objects and writing code. ... then UNDO to get my objects back. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Attn: Flat earth society members! Breaking news!
    ... Leaded gas is used in other places like Europe and Asia where they have more cars and fewer emission controls. ... Reading about other's experiences. ... Looking to buy a powerboat in the near future, planning on doing more extensive cruising when I retire. ...
    (rec.boats.cruising)