Por Que Python - #PUGCE

29
POR QUE PYTHON?

description

Minha palestra no 1º PythOnCeará - Por que Python?

Transcript of Por Que Python - #PUGCE

Page 1: Por Que Python - #PUGCE

POR QUE PYTHON?

Page 2: Por Que Python - #PUGCE

Quem sou?

Tiago FreireDesenvolvedor Python, Ruby e PHP na Index Comunicação DigitaL

Coordenador do PUGCE

Page 3: Por Que Python - #PUGCE

Por que Python?

Page 4: Por Que Python - #PUGCE

O que é Python? Criada por Guido van Rossum em

1991 Linguagem de programação de

alto nível Tipagem dinâmica e forte Orientada a objetos e procedural Multi-plataforma

Page 5: Por Que Python - #PUGCE

TIPAGEM DINÂMICA

Page 6: Por Que Python - #PUGCE

“HELLO WORLD” COM JAVA

Page 7: Por Que Python - #PUGCE

“HELLO WORLD” COM PHP

Page 8: Por Que Python - #PUGCE

“HELLO WORLD” COM RUBY

Page 9: Por Que Python - #PUGCE

“HELLO WORLD” COM PYTHON

Page 10: Por Que Python - #PUGCE

Por que usar Python?

Page 11: Por Que Python - #PUGCE

Por que usar Python? Fácil aprendizado Clara, concisa e consistente (facilita a

manutenção) Sintaxe elegante Segura Poderosa A biblioteca padrão é incrivelmente

extensa Estruturas de dados nativas poderosas Livre

Page 12: Por Que Python - #PUGCE

Sintaxa Os comentários começam com # Comentários multi-linhas são delimitados

por ''' ou “”” Variáveis não são declaradas, elas

assumem o tipo quando são associadas a um valor

Sem ; ao término de cada linha. Basta um <enter>.

Operadores de comparação: ==, <, >, <=, >=

Page 13: Por Que Python - #PUGCE

Orientação a Objetos Criando uma instância:

fulano= Pessoa()

Chamando método:fulano.fala()

Exclusãodel fulano.anda()

Page 14: Por Que Python - #PUGCE

Orientação a Objetos Declarando um construtor:

Page 15: Por Que Python - #PUGCE

Orientação a Objetos

Page 16: Por Que Python - #PUGCE

Orientação a Objetos Herança e polimorfismo

Page 17: Por Que Python - #PUGCE

Biblioteca Padrão Uma das maiores qualidades do

Python Centenas de módulos embutidos Exemplos: email, math, calendar,

HTMLParser, gzip, etc… Como usar ?

import email

Page 18: Por Que Python - #PUGCE

Multi-Plataforma Linux Unix Windows MacOS Maemo OLPC S60

Page 19: Por Que Python - #PUGCE

Posso programar para web com Ptyhon?

Page 20: Por Que Python - #PUGCE

Web com Python!

Page 21: Por Que Python - #PUGCE

DJANGO PROJECT Django é um framework web de alto

nível escrito em Python que estimula o desenvolvimento rápido e limpo

Page 22: Por Que Python - #PUGCE

Mapeador objeto-relacional Interface de administração automática URL's elegantes Sistema de templates Sistema de cache Internacionalização

DJANGO PROJECT

Page 23: Por Que Python - #PUGCE

DJANGO PROJECT

Page 24: Por Que Python - #PUGCE

wxPython (http://www.wxpython.org)PyGtk (http://www.pygtk.org)PySide (Qt) (http://www.pyside.org)tkInter (import Tkinter)

Quero programar para desktop!

Page 25: Por Que Python - #PUGCE

Quem usa Python? Google NASA YouTube.com Nokia (S60 e INDT) Industrial Light & Magic (Efeitos

especiais) Bittorrent

Page 26: Por Que Python - #PUGCE

Posso fazer aplicativos para celular?

PyS60 (http://wiki.opensource.nokia.com/projects/PyS60)

Page 27: Por Que Python - #PUGCE

Onde acho material de estudo?

http://wiki.python.org http://www.python.org http://www.pythonbrasil.org.br Lista de discussão PUG-CE:

http://groups.google.com.br/group/pug-ce http://diveintopython.org http://wiki.pugce.org/ http://www.google.com.br ;)

Page 28: Por Que Python - #PUGCE

Perguntas?

Page 29: Por Que Python - #PUGCE

Contatos

Email/MSN/Gtalk – [email protected] Twitter - @tiagofreire

co-autor – Nicholas Amorim