Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:code': 0.07; 'events.': 0.09; 'oop': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'worse': 0.09; 'subject:How': 0.10; 'python': 0.11; 'jan': 0.12; 'denotes': 0.16; 'fit,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:OOP': 0.16; 'vpython': 0.16; 'language': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'fit': 0.20; '>>>': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'community': 0.33; 'monday,': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'but': 0.35; 'there': 0.35; 'virtual': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'skip:* 10': 0.61; "you're": 0.61; 'making': 0.63; 'skip:n 10': 0.64; 'different': 0.65; 'world': 0.66; 'physical': 0.72; '*data': 0.84; '2015': 0.84; 'discrete': 0.84; 'huh?': 0.84; 'received:fios.verizon.net': 0.84; 'simulation.': 0.84; 'simulation': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: How to properly apply OOP in the bouncing ball code Date: Tue, 12 May 2015 11:45:31 -0400 References: <009ceef8-066d-4d92-a6c9-761e86584e75@googlegroups.com> <45313faa-d256-4fa4-9e37-4b8dd85e1681@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431445807 news.xs4all.nl 2944 [2001:888:2000:d::a6]:47134 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90459 On 5/11/2015 8:42 PM, zipher wrote: > On Monday, May 11, 2015 at 7:25:09 PM UTC-5, Dennis Lee Bieber wrote: >> On Mon, 11 May 2015 08:33:56 -0700 (PDT), zipher >> declaimed the following: >>> You are making a error that few in the programming community have caught up to. OOP design for *data abstraction* is a completely different beast that OOP for *simulation*. The confusion is around the use of the word "object" which both denotes a physical world item and a virtual one detached from reality. >>> >>> I would say that Python might not be the right fit, but instead a language dedicated to simulation. >> >> The danger there is that a "language dedicated to simulation" might >> mean "discrete event" simulation -- which would be an even worse fit to a >> problem of particle motion simulation. > > Huh? VPython successfully models particle motion simulation with discrete events. I don't see how you're going to update a variable non-discretely. Tensors? Good luck. > > Mark > -- Terry Jan Reedy