Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Tue, 19 Apr 2016 23:23:32 -0400 Lines: 60 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <5716595b$0$1585$c3e8da3$5496439d@news.astraweb.com> <3d95437c-6427-46d2-8e9f-470f121194cd@googlegroups.com> <20160419124321.361751dc@bigbox.christie.dr> <1461092090.2638611.583593041.7C981FAD@webmail.messagingengine.com> <5716dda3$0$1621$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 0qhrBLA5VBRfvzk/SZ/1tAUeN63om/OsgAiQtu2yFOOQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:PEP': 0.07; 'guys.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "they've": 0.09; 'url:mit': 0.09; 'yeah,': 0.09; 'python': 0.10; 'jan': 0.11; 'causing': 0.13; 'output': 0.13; '"hello': 0.16; 'fond': 0.16; 'missing,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'scratch': 0.16; 'structure.': 0.16; 'wrote:': 0.16; 'of.': 0.18; 'shape': 0.18; 'gui': 0.18; 'input': 0.18; 'programming': 0.22; 'code,': 0.23; 'elements': 0.23; 'player': 0.23; 'url:edu': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'least': 0.27; 'opposed': 0.27; 'interface': 0.29; 'looks': 0.29; 'helpful.': 0.29; 'so-called': 0.29; 'url:wikipedia': 0.29; "i'm": 0.30; 'url:wiki': 0.30; "we're": 0.30; 'code': 0.30; 'e.g.': 0.30; 'probably': 0.31; 'another': 0.32; 'core': 0.32; 'computer.': 0.32; 'useful': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'editor': 0.34; 'languages': 0.34; 'structure': 0.34; 'trouble': 0.35; 'could': 0.35; 'text': 0.35; 'programming.': 0.35; 'text.': 0.35; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'url:org': 0.36; 'possible': 0.36; '(and': 0.36; 'visual': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'display': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'one,': 0.37; 'why': 0.39; 'url:en': 0.39; 'subject:the': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'received:96': 0.63; 'more': 0.63; 'sample': 0.63; 'here:': 0.63; 'url:png': 0.64; "they're": 0.66; 'flash': 0.67; 'color': 0.67; 'phone': 0.68; 'visiting': 0.73; 'obvious': 0.76; 'disabled,': 0.84; 'html5,': 0.84; 'inherent': 0.84; 'lacks': 0.84; 'reinforce': 0.84; 'ultimately,': 0.84; 'colour': 0.91; 'graphical': 0.91; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-96-227-207-81.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <5716dda3$0$1621$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <5716595b$0$1585$c3e8da3$5496439d@news.astraweb.com> <3d95437c-6427-46d2-8e9f-470f121194cd@googlegroups.com> <20160419124321.361751dc@bigbox.christie.dr> <1461092090.2638611.583593041.7C981FAD@webmail.messagingengine.com> <5716dda3$0$1621$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:107389 On 4/19/2016 9:38 PM, Steven D'Aprano wrote: > So-called "visual programming environments" (think: Visual Basic) are > well-suited to laying out the interface of GUI applications. They might > even be useful for extremely limited mini-languages like regexes. I'm told > that there are still people who think that UML diagrams are a good idea. > They're probably good for dataflow programming. But ultimately, to be > productive with one, you still need text. > > As for "visual programming languages" (languages with an inherent visual > form which lacks any simple or obvious text equivalent), they've been a > dead-end. Even languages like Scratch cannot do without text. Look at > the "Hello World" program here: > > https://en.wikipedia.org/wiki/File:Scratch_Hello_World.png > > The graphical elements are pure presentation, to make it more palatable to > children and beginners. I think it is at least as important that the output is pictorial or even aural, then having the input text (and you are right, it is text) colored. By comparison, factorial functions (and most calculation examples) are rather boring. > Don't think that I'm opposed to such visual presentations. Look at the > sample code shown at the top of the page here: > > https://scratch.mit.edu/ > > It kinda looks like Hypertalk syntax, which some of you may remember I'm > exceedingly fond of. There's no reason why a GUI editor couldn't display > Python code using such "building block" structure. E.g. indented blocks > could use colour and shape cues to reinforce the structure of the code, > just as Scratch does. That is an interesting idea. Perhaps I have been stuck in either/or thinking -- either graphical or textual. With tk Text (IDLE), it would be possible to tag each (4-space) indent with a color for the compound statememt keywork causing the indent. > And if you want to see another reason why text rocks as the core for > programming languages? > > > "Oh no! We're having trouble displaying this Scratch project. > > If you are on a mobile phone or tablet, try visiting this project on a > computer. > > If you're on a computer, your Flash player might be disabled, missing, or > out of date." I had to enable Flash for this site. What are they going to do when Flash is dead rather than just dying? (Get with html5, perhaps?) > Yeah, thanks guys. Really helpful. -- Terry Jan Reedy