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


Groups > comp.lang.python > #48740

Re: A Beginner's Doubt

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <joshua.landau.ws@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'programmer': 0.03; 'anyway.': 0.05; '*not*': 0.07; 'compiler': 0.07; 'attachment.': 0.09; 'lines.': 0.09; 'pretend': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gui': 0.12; 'wrote': 0.14; 'language.': 0.14; '(just': 0.16; '*i*': 0.16; 'attached,': 0.16; 'easier.': 0.16; 'guessing': 0.16; 'html/css,': 0.16; 'inspiration': 0.16; 'job!': 0.16; 'scripts.': 0.16; 'silly': 0.16; 'do,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'examples': 0.20; 'written': 0.21; 'cc:addr:gmail.com': 0.22; 'python?': 0.22; 'rules': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'jquery': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'received:209.85.217': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'program,': 0.31; 'code': 0.31; 'lines': 0.31; 'too.': 0.31; 'you?': 0.31; 'libraries': 0.31; 'python"': 0.31; 'anyone': 0.31; 'probably': 0.32; 'skip:c 30': 0.32; 'interface': 0.32; 'run': 0.32; "i'd": 0.34; 'received:209.85': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'html,': 0.36; 'licensed': 0.36; 'done': 0.36; "didn't": 0.36; 'half': 0.37; 'too': 0.37; 'two': 0.37; 'received:209': 0.37; 'little': 0.38; 'anything': 0.39; 'bad': 0.39; 'how': 0.40; 'even': 0.60; 'easy': 0.60; 'games,': 0.60; 'new': 0.61; 'numbers': 0.61; 'browser': 0.61; 'times': 0.62; "you'll": 0.62; "you've": 0.63; 'show': 0.63; 'total': 0.65; 'to:addr:gmail.com': 0.65; 'bothered': 0.68; 'of:': 0.68; 'subject': 0.69; 'examples.': 0.84; 'yours': 0.88; 'careful': 0.91; 'joel': 0.91; 'mistake': 0.91; 'hundred': 0.95; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=teo4EB2XY1tkuyG4FATBwcoc47dwlq2S1VCrgS5ABVI=; b=FbJUjchnPi+NooJI2m+1GKRx+ZqEze9miprSRHxqQuQPx0L4WOH4xwVFxtM2jSsn1+ Aj8l8xp9X5+fp7V0pP9Xfvh8XFUH5Q2LANnXneFYX74VABI9/AJ66yO1vB5A+LgGaY2k 2ru5dkd3Yge2hsyuDk/6ayw2Cdwgpbh6SjmsZUWTLUut5PkdbOzvM/Kp31YtW3Pxm+Cb +MSVEM1Zvc2yE3FMhCLnjD9/mnoNKlJC7Xlt94gDjUTEQzMzaVO+a2ullxOs0rDKP6hW ZI/v/4M55RoCPi1xGfv4m3lGhcJ+l4OAzm7wia8p3o17Zcc4B8+/AOerapkUTRClPiSy 0bbA==
X-Received by 10.112.52.97 with SMTP id s1mr3893361lbo.8.1371666892555; Wed, 19 Jun 2013 11:34:52 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAPM-O+yS9CbBVWNg06=RmtVE5biMywzYbW6BAMJUx9Frd0ZjKw@mail.gmail.com>
References <8a4fced2-7d6c-455e-a482-b6f95b806ab5@googlegroups.com> <42499468-5e16-4ee0-9820-d1069a6af1b6@googlegroups.com> <CAPM-O+yS9CbBVWNg06=RmtVE5biMywzYbW6BAMJUx9Frd0ZjKw@mail.gmail.com>
From Joshua Landau <joshua.landau.ws@gmail.com>
Date Wed, 19 Jun 2013 19:34:12 +0100
Subject Re: A Beginner's Doubt
To Joel Goldstick <joel.goldstick@gmail.com>
Content-Type multipart/mixed; boundary=001a11c3ecdee18a9004df86151f
Cc "python-list@python.org" <python-list@python.org>, Rick Johnson <rantingrickjohnson@gmail.com>
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3595.1371666900.3114.python-list@python.org> (permalink)
Lines 157
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371666900 news.xs4all.nl 15936 [2001:888:2000:d::a6]:43249
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48740

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 19 June 2013 17:39, Joel Goldstick <joel.goldstick@gmail.com> wrote:
> What is the subject that this teacher of yours teaches?
> Do you know anyone who has every done any programming?
> Why python?

One of those questions is too easy :P.

But, no, I'd actually point out that Python might *not* be the best
language for the job! *GASP!* *HERETIC* *I'M TELLING!*

If you just want a GUI interface program, I'd recommend JavaScript.
Heck, if you don't mind the compiler troubles I'd use CoffeeScript.

"Why?!" You scream! Well, it's definitely not the language. The GUI
toolkit, HTML, however, is ace for really small
compatibility-don't-really-matter scripts. A couple old examples from
before I "went Python" are attached, not to show off the somewhat lame
code but just to point out that even as a new programmer these things
were *concise*. That made them so many billions of times easier.

<Beside the Point>
Be careful not to mistake the libraries I used for the code I wrote,
too. The amount of code *I* wrote for each numbers very few lines
(just the main two html files).
About half in total was HTML/CSS, so doesn't even count as code. I
wrote these for me, so pretend they're licensed strictly. Anything I
can give away I do, but it's best to check the licences anyway.

Please note that if you don't run these in a modern Chrome/Chromium
browser you'll have a bad time - I never bothered with compatibility.
Also, apologies for snatching the coffeescript.org coffeescript - but
I didn't want to mail a 60KB attachment.

Instructions: Guessing the rules is part of the game. They're both
thinking games, by the way. For Z-Rox clone, the inspiration is from
http://www.kongregate.com/games/evildog/z-rox.
<End Beside the Point>

How is this relevant to you? Well, JQuery will make what you've
written probably just couple of hundred lines. Forget about 2000!
This isn't relevant if any of:
1) You have to use python
2) You don't want a silly web interface
3) Any other good reason

See http://jqueryui.com/draggable/ for little examples.

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


Thread

A Beginner's Doubt augustofec@gmail.com - 2013-06-19 06:58 -0700
  Re: A Beginner's Doubt Neil Cerutti <neilc@norwich.edu> - 2013-06-19 14:19 +0000
  Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 00:20 +1000
  Re: A Beginner's Doubt Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 08:31 -0700
    Re: A Beginner's Doubt Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-19 12:39 -0400
    Re: A Beginner's Doubt Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-19 19:34 +0100
    Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 01:40 +1000
  Re: A Beginner's Doubt Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-19 17:53 +0100
    Re: A Beginner's Doubt rusi <rustompmody@gmail.com> - 2013-06-19 10:29 -0700
  Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 03:01 +1000
  Re: A Beginner's Doubt Terry Reedy <tjreedy@udel.edu> - 2013-06-19 13:57 -0400
    Re: A Beginner's Doubt Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 12:25 -0700
  Re: A Beginner's Doubt augustofec@gmail.com - 2013-06-21 04:31 -0700

csiph-web