Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'involves': 0.07; 'python': 0.08; 'coding.': 0.09; 'paradigms': 0.09; 'php.': 0.09; 'pm,': 0.10; 'gui': 0.14; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'constructs': 0.16; "else's": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'passing,': 0.16; 'runs.': 0.16; 'language,': 0.17; 'mon,': 0.17; 'somewhere': 0.17; 'language': 0.18; 'programming': 0.19; 'header:In-Reply-To:1': 0.21; 'loop': 0.22; 'oriented': 0.23; 'code': 0.24; "doesn't": 0.25; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'code,': 0.29; 'standalone': 0.30; 'environment': 0.30; 'anyone': 0.32; 'steven': 0.32; 'someone': 0.33; 'to:addr:python- list': 0.33; 'chris': 0.34; 'php': 0.34; "d'aprano": 0.35; 'intel': 0.35; 'else': 0.35; 'quite': 0.36; '8bit%:5': 0.36; 'table': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'could': 0.38; 'anything': 0.38; 'run': 0.38; 'implemented': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'almost': 0.60; 'skip:n 30': 0.63; 'designed': 0.65; 'believe': 0.66; 'hey,': 0.74; 'judicious': 0.84; 'imperative': 0.91; 'presumably': 0.91; 'joomla': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=mPN5aeaEPxWv7+80ukADwESbNi5zcaSVbJbPLBthAAQ=; b=xqtNvNOO85ZU6B5HmSjohyno2Wm+TMnY5rV7KmzYnpNd4293q6MVSrQ69cVbXXgyIR 6bmLqlTuCv3GVPCkQvJkVatXlVdPGl5xarFVlm10KNNfXWm/tGQD8ilbWbRzSG9LZOUN LfWP4/P3BKllq4N6mlEVzKA/j7QVwvkdB7qJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PgbcA6PPsmyczFHsmaF7rfepCdJc3U6zWvFbu1R+ehbMD/B828CUY+mXFTvejz16oX +nGaGe9gwJ+MCB7Ilz/1tqsWWiz+uIL/7Whmx/WA0BIe7U2wCaQbPUnO0B5tynORPsgs NgaS1jt5ejaPzgq19A3PSi0RgOh68CVUglEY0= MIME-Version: 1.0 In-Reply-To: References: <93tqifFnb2U1@mid.individual.net> <4dd9ffc1$0$29988$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 23 May 2011 16:49:32 +1000 Subject: Re: Abandoning Python From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 28 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306133376 news.xs4all.nl 49184 [::ffff:82.94.164.166]:37162 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6045 On Mon, May 23, 2011 at 4:33 PM, Steven D'Aprano 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: =A0get_message() =A0dispatch_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. 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! Chris Angelico