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


Groups > comp.lang.python > #6045

Re: Abandoning Python

References <mailman.1926.1306094594.9059.python-list@python.org> <93tqifFnb2U1@mid.individual.net> <4dd9ffc1$0$29988$c3e8da3$5496439d@news.astraweb.com> <BANLkTi=W7POcX8cRv+kqdf0zBF0PNHwr3g@mail.gmail.com>
Date 2011-05-23 16:49 +1000
Subject Re: Abandoning Python
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1957.1306133376.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, May 23, 2011 at 4:33 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> And presumably anyone who has played around with GUI programming in
> Python will have run into message oriented coding.
>

GUI code almost always involves a main loop somewhere that consists of:

while not time_to_terminate:
 get_message()
 dispatch_message()

Voila, you've just implemented message-oriented code in an imperative
way. Doesn't make the language inherently message-oriented. If you're
going to read someone else's code, then, you not only need to know the
language, you need to know the environment in which it runs. I found
that out the hard way when I tried to read some PHP code that was
designed to run inside Joomla - it's quite quite different from
standalone PHP.

<tongue location="cheek">I believe assembly language offers as many
paradigms as anything else you might want. With judicious use of
constructs like the Intel "JMP [BP+SI]" and a nice table of jump
targets, you could do message passing, OOP/inheritance, procedures,
and next-programmer-brain-destruction, and hey, it's tabular
too!</tongue>

Chris Angelico

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


Thread

Re: Abandoning Python Ed Keith <e_d_k@yahoo.com> - 2011-05-22 13:01 -0700
  Re: Abandoning Python Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-05-23 13:11 +1200
    Re: Abandoning Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-23 06:33 +0000
      Re: Abandoning Python Chris Angelico <rosuav@gmail.com> - 2011-05-23 16:49 +1000
      Re: Abandoning Python Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-05-24 12:04 +1200
        Re: Abandoning Python rantingrick <rantingrick@gmail.com> - 2011-05-23 17:21 -0700

csiph-web