por que python - #pugce
DESCRIPTION
Minha palestra no 1º PythOnCeará - Por que Python?TRANSCRIPT
![Page 1: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/1.jpg)
POR QUE PYTHON?
![Page 2: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/2.jpg)
Quem sou?
Tiago FreireDesenvolvedor Python, Ruby e PHP na Index Comunicação DigitaL
Coordenador do PUGCE
![Page 3: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/3.jpg)
Por que Python?
![Page 4: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/5.jpg)
TIPAGEM DINÂMICA
![Page 6: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/6.jpg)
“HELLO WORLD” COM JAVA
![Page 7: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/7.jpg)
“HELLO WORLD” COM PHP
![Page 8: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/8.jpg)
“HELLO WORLD” COM RUBY
![Page 9: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/9.jpg)
“HELLO WORLD” COM PYTHON
![Page 10: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/10.jpg)
Por que usar Python?
![Page 11: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/14.jpg)
Orientação a Objetos Declarando um construtor:
![Page 15: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/15.jpg)
Orientação a Objetos
![Page 16: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/16.jpg)
Orientação a Objetos Herança e polimorfismo
![Page 17: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/18.jpg)
Multi-Plataforma Linux Unix Windows MacOS Maemo OLPC S60
![Page 19: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/19.jpg)
Posso programar para web com Ptyhon?
![Page 20: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/20.jpg)
Web com Python!
![Page 21: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/21.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/22.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/23.jpg)
DJANGO PROJECT
![Page 24: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/24.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/25.jpg)
Quem usa Python? Google NASA YouTube.com Nokia (S60 e INDT) Industrial Light & Magic (Efeitos
especiais) Bittorrent
![Page 26: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/26.jpg)
Posso fazer aplicativos para celular?
PyS60 (http://wiki.opensource.nokia.com/projects/PyS60)
![Page 27: Por Que Python - #PUGCE](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/27.jpg)
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](https://reader035.vdocuments.com.br/reader035/viewer/2022081413/54911a16b4795970348b4585/html5/thumbnails/28.jpg)
Perguntas?