Upload
lawrence-acosta
View
51
Download
8
Embed Size (px)
DESCRIPTION
Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição. Visão Geral. Linguagem Orientada a Objetos Open Source Multiplataforma Scripting e Aplicações WEB com Django. Histórico. Lançado por Guido Van Rossum em 1991 Computer Programming for Everybody Versão atual 3.3.0 - PowerPoint PPT Presentation
Citation preview
Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição
Linguagem Orientada a Objetos Open Source Multiplataforma Scripting e Aplicações WEB com Django
Visão Geral
Lançado por Guido Van Rossum em 1991 Computer Programming for Everybody Versão atual 3.3.0 Modelo de desenvolvimento comunitário –
Python Software Foundation
Histórico
Sintaxe clara e fácil de ler◦ Um bloco de código é feito através da identação
Orientação a Objetos intuitiva◦ Tudo é objeto
Tipagem dinâmica forte◦ Pode-se atribuir a uma variável qualquer tipo de valor
Multiplataforma◦ Linguagem interpretada
Rápido desenvolvimento◦ Don’t Repeat Yourself◦ Keep It Simple Stupid
Características
Extensa biblioteca padrão Módulos de terceiros para praticamente
todas as tarefas Grande variedade de Frameworks Desenvolvimento para diversos tipos de
arquitetura◦ WEB◦ Desktop◦ Mobile
Linguagem amigável
Características
Componente padrão para diversos SO◦ Linux◦ Mac OSX
Java Virtual Machine◦ Jython
.NET◦ ironPython
Multiplataforma
YouTube Google Yahoo NASA GIMP Indústria de segurança da informação Industrial Light & Magic – Computação
gráfica
Mercado
Linguagens bastante diferentes editar-executar X editar-compilar-executar Estruturas nativas de dados
◦ Listas◦ Dicionários
Mais produtivo (de 5 a 10 vezes) Tipagem dinâmica X tipagem estática Conciso X prolixo compacto
Python X Java
JAVA Python
if ( a > b ){ a = b; b = c; }
if a > b : a = b b = c
Exemplos
Escrever na tela “hello world”
Exemplos
Java Python
public class HelloWorld { public static void main (String[] args) { System.out.println(“Hello World”); } }
Print “Hello World”
Para abrir um arquivo
Exemplos
JAVA Python
import java.io.*; ...BufferedReader myFile = new BufferedReader( new FileReader(argFilename));
# open an input file
myFile = open(argFilename)
The Zen of Python, by Tim Peters
Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.
Complex is better than complicated.Flat is better than nested.
Sparse is better than dense.Readability counts.
Special cases aren't special enough to break the rules.Although practicality beats purity.Errors should never pass silently.
Unless explicitly silenced.In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.Although that way may not be obvious at first unless you're Dutch.
Now is better than never.Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
http://henriquebastos.wufoo.com/reports/como-python-a-usado/
http://archive.org/details/SeanKellyRecoveryfromAddiction
Extras
http://www.python.org/ http://www.python.org.br/ http://
wiki.python.org/moin/LanguageComparisons http://pt.wikipedia.org/wiki/Python http://pythonconquerstheuniverse.wordpres
s.com/category/java-and-python/
Referências