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


Groups > comp.lang.python > #78218

Re: Python advice

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'programmer': 0.03; 'operator': 0.03; 'subject:Python': 0.06; 'encoded': 0.07; 'strict': 0.07; 'variables': 0.07; 'string': 0.09; '22,': 0.09; '===': 0.09; 'arrays': 0.09; 'sql,': 0.09; 'strings.': 0.09; 'translate': 0.10; 'python': 0.11; 'language,': 0.12; '(unlike': 0.16; 'coroutines': 0.16; 'downside': 0.16; 'expects': 0.16; 'iterators,': 0.16; 'sqlalchemy': 0.16; 'sqlalchemy,': 0.16; '(you': 0.16; 'language': 0.16; 'wrote:': 0.18; 'basically': 0.19; 'typing': 0.19; 'otherwise,': 0.22; 'certainly': 0.24; 'issue,': 0.24; 'lets': 0.24; 'simpler': 0.24; 'skip': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'query': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; 'argue': 0.31; 'keys': 0.31; 'sep': 0.31; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'curious': 0.36; 'should': 0.36; 'easily': 0.37; 'same.': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'worth': 0.66; 'apart': 0.72; 'construction': 0.72; '(still': 0.84; 'incredibly': 0.96; 'serious': 0.97
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 :content-type; bh=C8WvrJ0+S15v0M/OQdI23FS2ejpqFF2MmyoLSkLwJNA=; b=NpSVGW4aWfA9wt3xb886+vbPguJh9HvxrdlnuyB1ae1m2Jkms1+ig8QjpKTV778aWP /xxYKMFrz0x5py6ZV5LFp2ZO6pynclkZgySyV2+OYakq372RyjPNgeUEEpqYwZw/nPmk MRgnr4rjBDum626Tw3d+w/ObdmMHVKxGUIDoATHJ5yYyzkZLlDFGDSl8jknPxW9nK2wx 4eaN3SgwWeBsxorWJpAStSnu0vX2e8HxYkyN2MeRXki5PW3g0x0cTOg//Z+pBHsiGNVb MgJInoYPLTGEEfi8zAu0rZBaPtCn9RV3x0/FTEmOgZWlO/JVZkNtWo4v98PrOIg7HUds OBPA==
X-Received by 10.66.139.16 with SMTP id qu16mr14507093pab.153.1411483745945; Tue, 23 Sep 2014 07:49:05 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAPTjJmrae8XzkREFBLqmt0i+80e6mUFBv1xbU9tPUSCDpC1cLg@mail.gmail.com>
References <9b76b07d-db88-4e08-9abe-10df1ac9953e@googlegroups.com> <lvpo4b$38f$1@ger.gmane.org> <CALvWhxtXZfRHGKFDR6ygUv5wzSeGBYW-hG89k03aR3xD-z4O9A@mail.gmail.com> <CAPTjJmrae8XzkREFBLqmt0i+80e6mUFBv1xbU9tPUSCDpC1cLg@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Tue, 23 Sep 2014 08:48:25 -0600
Subject Re: Python advice
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.14265.1411483755.18130.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411483755 news.xs4all.nl 2965 [2001:888:2000:d::a6]:54053
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78218

Show key headers only | View raw


On Mon, Sep 22, 2014 at 6:55 PM, Chris Angelico <rosuav@gmail.com> wrote:
> Lua is a much simpler language than ECMAScript, incredibly
> light-weight, and easily sandboxed. It doesn't work with Unicode (I
> think its string type is eight-bit, so you have to work with encoded
> bytes), which is a serious downside in my opinion. Learn Lua if you
> want to work with something that embeds it. Otherwise, don't bother
> for now.

Apart from the Unicode issue, I'm curious what makes you describe it
as "much simpler" than ECMAScript.  Lua has coroutines built into the
language, stricter typing than ES (still not as strict as Python, but
at least you don't have to deal with a === operator because the ==
operator is broken), operator overloading, iterators, block-level
scoping, closure construction that binds loop variables the way the
programmer expects (unlike both Python and ES), and associative arrays
that allow arbitrary keys rather than coercing the keys to strings.

> * SQL is the one and only database query language you should ever need
> to bother with. (You might skip SQL too, if you use something like
> SQLAlchemy, but you certainly won't need any other query language -
> not in 2014.) It's well worth getting to know SQL at some point;
> whether you use Python, Pike, C, or any other language for the
> application, your SQL code will be the same.

SQLAlchemy lets you use SQL without actually writing SQL, but I would
argue that it's still basically necessary to understand SQL and what
the SQLAlchemy calls translate to in order to use it.

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


Thread

Python advice ngangsia akumbo <ngangsia@gmail.com> - 2014-09-22 01:09 -0700
  Re: Python advice ngangsia akumbo <ngangsia@gmail.com> - 2014-09-22 01:14 -0700
    Re: Python advice vek.m1234@gmail.com - 2014-09-22 02:10 -0700
  Re:Python advice Dave Angel <davea@davea.name> - 2014-09-22 14:03 -0400
  Re: Python advice Chris Kaynor <ckaynor@zindagigames.com> - 2014-09-22 12:00 -0700
    Re: Python advice wxjmfauth@gmail.com - 2014-09-22 23:22 -0700
  Re: Python advice Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-22 13:39 -0600
  Re: Python advice Chris Kaynor <ckaynor@zindagigames.com> - 2014-09-22 14:59 -0700
  Re: Python advice Chris Angelico <rosuav@gmail.com> - 2014-09-23 10:55 +1000
  Re: Python advice Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-23 08:48 -0600
  Re: Python advice Chris Angelico <rosuav@gmail.com> - 2014-09-24 01:08 +1000

csiph-web