PDA

View Full Version : [Python] Consiglio libro o tutorial


M4rk191
20-12-2009, 17:27
Tra poco ci saranno le vacanze di natale e ho intenzione di imparare il linguaggio in questione. Trattandosi di un linguaggio di scripting e considerato che conosco i fondamenti della programmazione, mi conviene leggere un libro o il tutorial ufficiale tradotto?

cdimauro
20-12-2009, 19:33
Se mastichi già di programmazione, ti consiglio il tutorial dal sito ufficiale.

P.S. Python NON è un linguaggio di scripting.

Ryuzaki_Eru
21-12-2009, 10:23
Tra poco ci saranno le vacanze di natale e ho intenzione di imparare il linguaggio in questione. Trattandosi di un linguaggio di scripting e considerato che conosco i fondamenti della programmazione, mi conviene leggere un libro o il tutorial ufficiale tradotto?

Io consiglio un libro per avere una visione più completa e approfondita delle cose. Se hai soldi da spendere compra Imparare Python di Mark Lutz, altrimenti scarica il Pensare da Informatico.

P.S: non dire mai più una blasfemia simile ;)

cdimauro
21-12-2009, 13:13
Verissimo. Se si hanno soldi da poter spendere "Imparare Python" è un eccellente libro che merita ogni singolo centesimo.

theUser
29-12-2009, 14:57
Scusate l'OT, ma ancora non ho ben capito la differenza tra linguaggio di programmazione vero e proprio e linguaggio di scripting...qualcuno me lo può spiegare?

P.S. Varrebbe la pena di lasciare pensare da informatico(sono a pag. 100 circa) e riiniziare con imparare python?

Ryuzaki_Eru
29-12-2009, 15:51
P.S. Varrebbe la pena di lasciare pensare da informatico(sono a pag. 100 circa) e riiniziare con imparare python?

Si.

theUser
29-12-2009, 15:54
Ok, grazie

cdimauro
30-12-2009, 07:20
Scusate l'OT, ma ancora non ho ben capito la differenza tra linguaggio di programmazione vero e proprio e linguaggio di scripting...qualcuno me lo può spiegare?
Si tratta semplicemente di una connotazione negativa figlia di una visione distorta del significato di "linguaggio di programmazione".

theUser
31-12-2009, 15:02
Quindi in realtà i linguaggi di scripting non esistono, se ho ben capito

cdimauro
31-12-2009, 22:37
Esistono i linguaggi di programmazione (turing-completi). Punto. ;)

niktor
01-01-2010, 12:42
Ryuzaki_Eru ha ragione, un ottimo libro sul Python è la soluzione migliore per imparare a programmare in questo straordinario linguaggio. Se invece vuoi solo fare un po' di pratica ed imparare in modo semplice Python, ho realizzato alcuni tutorial (ancora in evoluzione) su youtube all'indirizzo http://www.youtube.com/user/NiktorTheNat - Un manuale o libro però sono sempre la soluzione migliore.

theUser
02-01-2010, 11:52
Avrei intenzione di prendere Imparare Python, ma ancora devono tradurre la IV edizione in italiano...le differenze con la III stanno nella versione del linguaggio(2.6 vs 2.5) e in 500(o.o) pagine in più. Qualcuno che conosce il libro mi può dire quale prendere?

Ryuzaki_Eru
02-01-2010, 14:03
Ho fatto la domanda a Lutz per curiosità, per vedere quali sono le differenze con la terza visto che ci sono 500 pagine in più. Io il libro l'ho letto perchè ho potuto "noleggiarlo" tempo fa, ero curioso di vedere come era, la cosa negativa è che è pieno di errori grammaticali (non è colpa dell'autore, quando del traduttore e di chi revisiona il libro), ma era fatto bene ed era ricco. La quarta edizione ha un bel pò di aggiornamenti, ecco la mail di Lutz. Ovviamente ne ho approfittato per ordinare il libro, non può mancare nella mia libreria. Come quello del Beri :)

Hello,

This is a great question, and thanks for asking. I'm going to post
this reply on my book updates page for the 4th Edition, since others
are certainly wondering the same thing.

First off, if you're using Python 2.X, and are sure you will be for
some time to come, the 3rd Edition is probably fine for getting
started. If you care about either Python 2.6 or 3.X, though, or
might in the near future, the 4th Edition may be a better choice.
The 4th Edition has been updated to cover both Python 2.6 and 3.X
(technically, 3.1). It is designed to serve readers using either
Python line, and be a resource for those transitioning between them.

As for specific additions, some of this is difficult to reconstruct
on a page count basis. Books evolve organically while they are being
written, and there isn't a 1-to-1 relationship between pages in the 3rd
and 4th Editions. But in terms of what I can quantify, the 500 extra
pages in the 4th Edition break down this way:


1) New chapters: 226 pages

There are 5 new chapters, 4 of which are in a new "Advanced Topics"
part at the end. Here are the chapters added:

-(37 pages) Chapter 27, A More Realistic Example (OO tutorial)

-(45 pages) Chapter 36, Unicode and Byte Strings

-(41 pages) Chapter 37, Managed Attributes

-(68 pages) Chapter 38, Decorators

-(35 pages) Chapter 39, Metaclasses

The first of these appears in the classes/OOP part, and provides a new
and much needed OO tutorial. The last 4 appear in the new advanced
topics part which is 189 pages long. The decorators chapter's larger
size owes to the fact that it includes some larger case studies that
are more satisfying than many of other examples in the book.

All together, these new chapters add 226 pages as printed. Among
these, today I'd classify only the last 3 as truly "optional reading"
for many people; the coverage of Unicode strings in Chapter 36 is more
widely relevant, and the OO tutorial is core material. That means
the 5 new chapters account for 82 pages of new fundamentals material,
plus just 144 pages of potentially optional reading at the end.


2) Python 2.6 + 3.X changes/additions: 200? (most of the rest)

As mentioned, the 5 new chapters account for 226 of the 500 new pages,
roughly half. In other words, even without the new chapters, this
book would have still grown to be roughly 1000 pages long in the new
edition (and s bit longer if just 144 new pages are truly optional).

The remainder of the added size mostly stems from coverage of new
or changed features in Python 2.6 and 3.X, along with the need to
cover two incompatible versions of Python in one book. For an
overview of what was addressed in the language changes/additions
category, I'd point you to the tables at the end of the draft
Preface which I've posted here:

http://www.rmi.net/~lutz/lp4e-preface-preview.html

Beyond specific language changes, covering two versions implies some
extra size by itself. We opted to cover both Python lines instead of
requiring readers to buy two books; until the Python world moves beyond
its current 2.X/3.X split state, widely-read Python books like this one
don't really have many other good options.


3) Extended coverage of some existing topics: negligible

Some minor growth owes to extended coverage for topics already present
in the 3rd Edition. This includes new material and examples for tools
such as operator overloading, new-style classes, decorators, and
iterators and generators. However, most of the growth in this category
stems either from new features in 2.6/3.X, or formerly obscure features
that have grown to become common practice today.

--Mark Lutz

In ogni caso per imparare la terza è più che sufficiente. Dopo aver letto il libro puoi trovare tutto in rete.

theUser
02-01-2010, 14:52
Grazie per la tua curiosità :D
Ora ho due opzioni: prendere la terza in italiano o la quarta in inglese. La mia paura è che possa diventare stressante leggere tutte quelle cose in inglese, ma forse anche un utile esercizio...
Non so cosa fare, sono proverbialmente indeciso xD
EDIT: mi era sfuggita l'ultima riga...mi sa che prendero la terza :)

Ryuzaki_Eru
02-01-2010, 15:38
L'inglese è fondamentale, prima o poi devi averci a che fare. La quarta è senza dubbio più completa, aggiornata e migliorata. Io prenderei la quarta fossi in te.

theUser
02-01-2010, 15:45
Allora seguirò il tuo consiglio. Non che abbia problemi con l'inglese, però studiare con il dizionario accanto non credo sia il massimo, per quanto istruttivo. :)

Ryuzaki_Eru
02-01-2010, 17:03
L'inglese tecnico non è difficile, va abbastanza liscio :)

theUser
05-01-2010, 14:08
Ho trovato quest'altro manuale, pieno di esercizi:
http://homepage.mac.com/s_lott/books/python/BuildingSkillsinPython.pdf
Di nuovo indeciso :fagiano:

Ryuzaki_Eru
05-01-2010, 16:45
Io il mio consiglio te l'ho dato. Cosi perdi solo tempo a cercare, inizia da qualche parte e dopo che ti fai le base approfondisci.