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


Groups > comp.lang.python > #53670

Re: Beginner's guide to Python

References <krgd29147rkd24eud341jrm5uc1lh5ojr3@4ax.com> <kquf29p4roga0u55r1ft1klt9haf9dtajm@4ax.com> <52280285.4040902@gmail.com>
Date 2013-09-05 14:14 +1000
Subject Re: Beginner's guide to Python
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.74.1378354477.5461.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Sep 5, 2013 at 2:03 PM, Andrew Berg <robotsondrugs@gmail.com> wrote:
> On 2013.09.04 22:39, Dennis Lee Bieber wrote:
>> On Wed, 04 Sep 2013 07:26:47 +0200, Steve Hayes <hayesstw@telkomsa.net>
>> declaimed the following:
>>
>>>Can anyone recommend a web site that gives a good beginner's guide to Python?
>>>
>>>One that tells one, especially --
>>>
>>>-- what kind of projects Python is good for
>>
>>       So far as I know, Python is "Turing-complete" -- it can be used for
>> anything...
> So is Brainfuck, but I wouldn't say it's good for *any* project...

There are always surprises. A few years ago (okay, a good few now) I
was gobsmacked to learn that JavaScript, which I'd always thought was
for web browsers only, could be used for writing web *servers*. And
the inverse is true, too - Pike, a language specifically designed for
building servers (specifically MUDs - plain text), has bindings for
GTK, so it can be used for writing graphical desktop applications.

But there are definite goals and philosophies that affect whether a
language is good for something or not. Python is extremely well suited
to short scripts that do one tiny thing and immediately shut down,
because it has an absolute minimum of boilerplate; other languages,
where you have to wrap your code up in "int main() { ... }" are less
suited to that. On the flip side, Python's object model tends to be
less well suited to massive scaling; I don't know about PyPy and other
Pythons, but certainly CPython isn't designed to run on arbitrary
numbers of cores (once you go to multiprocessing, you then need to
worry about IPC; if you work in a lower level language like C, you can
use threads and directly access each other's memory). "Everything is
permissible" - but not everything is constructive. [1] Sometimes
you're fighting the language rather than working with it.

ChrisA

[1] Did you know that the Corinthian church needed advice on
programming? First letter, tenth chapter, twenty-third verse.

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


Thread

Beginner's guide to Python Steve Hayes <hayesstw@telkomsa.net> - 2013-09-04 07:26 +0200
  Re: Beginner's guide to Python Chris Angelico <rosuav@gmail.com> - 2013-09-04 17:10 +1000
  Re: Beginner's guide to Python "prashanth B.G" <prash.bg@gmail.com> - 2013-09-04 11:49 +0530
  Re: Beginner's guide to Python Grant Edwards <invalid@invalid.invalid> - 2013-09-04 14:03 +0000
    Re: Beginner's guide to Python Steve Hayes <hayesstw@telkomsa.net> - 2013-09-04 18:09 +0200
  Re: Beginner's guide to Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-04 23:39 -0400
  Re: Beginner's guide to Python Andrew Berg <robotsondrugs@gmail.com> - 2013-09-04 23:03 -0500
  Re: Beginner's guide to Python Chris Angelico <rosuav@gmail.com> - 2013-09-05 14:14 +1000
    Re: Beginner's guide to Python Steven D'Aprano <steve@pearwood.info> - 2013-09-05 07:27 +0000

csiph-web