Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'creighton': 0.09; 'implies': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'things.': 0.15; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:array': 0.16; 'subject:program': 0.16; 'wrote:': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'oriented': 0.22; 'sat,': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; '+0200,': 0.27; "skip:' 10": 0.28; 'idea?': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'code': 0.30; 'operations': 0.31; 'fixed': 0.31; 'functional': 0.32; 'add': 0.34; 'primarily': 0.35; 'subject:: ': 0.37; 'really': 0.37; 'things': 0.38; 'your': 0.60; 'header:Message- Id:1': 0.61; 'more': 0.63; 'other.': 0.64; 'techniques': 0.65; 'jul': 0.72; 'received:89': 0.80; '>how': 0.84 To: "Thomas 'PointedEars' Lahn" cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: scalar vs array and program control In-Reply-To: Message from "Thomas 'PointedEars' Lahn" of "Sat, 25 Jul 2015 14:57:14 +0200." <1619647.1FW7hyz6Jq@PointedEars.de> References: <87vbd850qa.fsf@gmail.com> <1619647.1FW7hyz6Jq@PointedEars.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <24897.1437831839.1@fido> Content-Transfer-Encoding: quoted-printable Date: Sat, 25 Jul 2015 15:43:59 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Sat, 25 Jul 2015 15:44:04 +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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437831852 news.xs4all.nl 2859 [2001:888:2000:d::a6]:51544 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94550 In a message of Sat, 25 Jul 2015 14:57:14 +0200, "Thomas 'PointedEars' Lah= n" wr ites: >Laura Creighton wrote: > >> [=E2=80=A6] You really cannot make your code 'more functional' and 'mo= re object- >> oriented' at the same time -- more in one style implies less in the oth= er. > >How did you get that idea? Because pure object oriented techniques are best when you have a fixed set of operations on things, and as your code evolves you primarily add new things. Things written in a functional style work best when you have a fixed set of things, and your code evolves you add new operations for the existing things. Laura