14
Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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

Page 1: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

Page 2: 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

Page 3: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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

Page 4: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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

Page 5: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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

Page 6: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

Componente padrão para diversos SO◦ Linux◦ Mac OSX

Java Virtual Machine◦ Jython

.NET◦ ironPython

Multiplataforma

Page 7: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

YouTube Google Yahoo NASA GIMP Indústria de segurança da informação Industrial Light & Magic – Computação

gráfica

Mercado

Page 8: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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

Page 9: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

JAVA Python

if ( a > b ){ a = b; b = c; }

if a > b : a = b b = c

Exemplos

Page 10: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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”

Page 11: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

Para abrir um arquivo

Exemplos

JAVA Python

import java.io.*; ...BufferedReader myFile = new BufferedReader( new FileReader(argFilename));

# open an input file

myFile = open(argFilename)

Page 12: Grupo: Bruno W. Gonçalves, Michelle C. Colin, Vanessa S. Conceição

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!