How to properly apply OOP in the bouncing ball code
Terry Reedy
tjreedy at udel.edu
Tue May 12 11:45:31 EDT 2015
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
>> <dreamingforward at gmail.com> 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
More information about the Python-list
mailing list