Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66057
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| 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; 'from:addr:yahoo.co.uk': 0.04; 'python)': 0.05; 'say,': 0.05; 'subject:Python': 0.06; 'lines,': 0.07; 'python3': 0.07; 'skip:p 60': 0.07; 'bits': 0.09; 'lawrence': 0.09; 'properly.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'def': 0.12; 'suggest': 0.14; 'background.': 0.14; 'language.': 0.14; 'itself,': 0.16; 'massively': 0.16; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'repl': 0.16; 'simplicity.': 0.16; 'wastes': 0.16; 'write,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'app': 0.19; 'trying': 0.19; 'basically': 0.19; 'drawing': 0.19; 'possible,': 0.19; 'server,': 0.19; 'written': 0.21; 'seems': 0.21; 'programming': 0.22; 'import': 0.22; '(in': 0.22; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'setup,': 0.24; 'simpler': 0.24; 'stick': 0.24; '---': 0.24; 'sort': 0.25; "i've": 0.25; 'source': 0.25; 'post': 0.26; '(for': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'scale': 0.29; 'thus': 0.29; 'strongly': 0.30; "i'm": 0.30; 'code': 0.31; 'lines': 0.31; 'concise': 0.31; 'libraries': 0.31; 'with,': 0.31; 'this.': 0.32; 'front': 0.32; 'run': 0.32; 'guess': 0.33; 'projects.': 0.33; 'skip:# 10': 0.33; 'basic': 0.35; 'anybody': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'described': 0.36; 'done': 0.36; "i'll": 0.36; 'should': 0.36; 'too': 0.37; 'list.': 0.37; 'performance': 0.37; 'skip:o 20': 0.38; 'server': 0.38; 'window': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'future': 0.60; 'commands': 0.60; 'engines': 0.60; 'free': 0.61; 'skip:a 30': 0.61; 'browser': 0.61; 'viruses': 0.61; 'john': 0.61; 'simply': 0.61; 'simple': 0.61; 'high': 0.63; 'protection': 0.63; 'skip:n 10': 0.64; 'our': 0.64; 'more': 0.64; 'within': 0.65; 'antivirus': 0.68; 'beautiful': 0.68; 'rendering': 0.68; 'skip:w 40': 0.68; 'browser.': 0.78; 'browsers,': 0.84; 'characters,': 0.84; 'coupled': 0.84; 'end.': 0.84; 'induces': 0.84; 'quickest': 0.84; 'received:2': 0.84; 'subject:Top': 0.84; 'tolerate': 0.84; 'toy': 0.84; 'working,': 0.84; 'graphical': 0.91; 'picture': 0.97 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: Top down Python |
| Date | Wed, 12 Feb 2014 16:56:34 +0000 |
| References | <52FB1D27.8090009@allsup.co> <52FBA40C.3040806@allsup.co> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-2-98-192-220.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| In-Reply-To | <52FBA40C.3040806@allsup.co> |
| X-Antivirus | avast! (VPS 140212-1, 12/02/2014), Outbound message |
| X-Antivirus-Status | Clean |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6766.1392224405.18130.python-list@python.org> (permalink) |
| Lines | 78 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1392224406 news.xs4all.nl 2932 [2001:888:2000:d::a6]:39606 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:66057 |
Show key headers only | View raw
On 12/02/2014 16:40, John Allsup wrote:
> I've realised that the best way to do this is to use a web browser for
> the graphical front end: high end graphics are simply not a necessity
> here, so one does not need to leave the confines of the browser. Thus
> we need a simple server script.
>
> I'm still minimalist, so I guess we want xmlrpc and a python server,
> with a bit of javascript in the browser to sort out the drawing end.
> This now seems way simpler than trying to play with Gtk or Qt.
>
> Basically the lesson is to use a web browser engine as a graphics engine
> unless you have performance issues. Hopefully in future html rendering
> engines will not be so strongly coupled to browsers, or even to the html
> format itself, but will be a general purpose user graphics engine (an
> ncurses for bitmapped displays).
>
> Can anybody suggest the quickest way to learn the bits of xmlrpc (in
> python) that I need to do this. Once it's working, I'll stick a source
> code download on my website. There will be only one version released:
> the one that works properly. Thus there is no need to github this.
>
> All the best,
>
> def my_sig():
> print("--")
> print(signame(['n','o','h',uppercase('j')]).written_backwards)
>
> On 12/02/2014 07:05, John Allsup wrote:
>> What is needed for proper learning is near-absolute simplicity.
>> Even one toy too many to play with is an intolerable distraction,
>> but one too few massively hampers learning and induces boredom.
>>
>> I want to be able to say:
>> 1. Put a nice picture on the background.
>> 2. Put a terminal window with, say, 64x20 lines, dead centre.
>> 3. Run a simple REPL program written in Python or Ruby within it.
>> I do not really want to write any more lines of code than I need to.
>> Why do we not have langauges and libraries that can do the above
>> with only five lines of code (line 0 == setup, line 4 == cleanup).
>>
>> Programming should be that efficient if we learn to make things
>> beautiful and not tolerate wastes of lines and characters, on
>> a global scale as well as locally to our projects.
>>
>> Consider
>> ====
>> #!/usr/bin/env python3
>>
>> from myappfw import app
>> from myapp1 import repl
>> app.background = "Moutains1"
>> t = app.terminal.open(title="Typing commands One Oh
>> One",position="centre",
>> width="80%",height="72%",rows="20",columns="64")
>> exit(t.run(repl))
>> ====
>>
>> What Python would I need to write, as concise but readable as
>> practically possible, so that the above program works as desired (for
>> any repl that obeys the basic input-process-output behaviour of a repl)?
>>
>> This is top-down design done right IMO (as described in Thinking Forth,
>> by the way).
>
Please don't top post on this list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Top down Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-12 16:56 +0000
csiph-web