Top Banner
Produtividade com ZF2, PDT & Zend Server Free Edition Flávio Gomes da Silva Lisboa Zend Certified Engineer PHP 5.3 Zend Framework Certified Engineer
73

Produtividade com ZF2, PDT & Zend Server Free Edition

May 26, 2015

Download

Technology

Flávio Lisboa

Como diminuir a incidência de erros em projetos PHP utilizando um poderoso arsenal de ferramentas livres para descoberta e correção de bugs, além de praticar reuso com o framework Zend.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Produtividade com ZF2, PDT & Zend Server Free Edition

Produtividade com ZF2, PDT & Zend Server Free Edition

Flávio Gomes da Silva LisboaZend Certified Engineer PHP 5.3

Zend Framework Certified Engineer

Page 2: Produtividade com ZF2, PDT & Zend Server Free Edition

Quem sou eu?

2

Page 3: Produtividade com ZF2, PDT & Zend Server Free Edition

Quem sou eu?

Powered by

http://www.tine20.org

Page 4: Produtividade com ZF2, PDT & Zend Server Free Edition

PRODUTIVIDADE

Page 5: Produtividade com ZF2, PDT & Zend Server Free Edition

http://www.auctus.com.br

Page 6: Produtividade com ZF2, PDT & Zend Server Free Edition

Programador de Computadores

O que é isso?

Page 7: Produtividade com ZF2, PDT & Zend Server Free Edition

Programação de Computadores

“(...) programação era nada mais do que otimizar a eficiência do processo computacional (...)”

Edsger Djikstra*

* http://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340.html

Page 8: Produtividade com ZF2, PDT & Zend Server Free Edition

Programação de Computadores

“(...) código representa os detalhes dos requisitos. Em algum nível esses detalhes não podem ser ignorados ou abstraídos; eles tem de ser especificados. E especificar requisitos em tal detalhe que uma máquina possa executá-los é programar. Tal especificação é código.”

Robert C. Martin

(Clean Code, p. 2)

Page 9: Produtividade com ZF2, PDT & Zend Server Free Edition

Programação de Computadores

Programação hoje, além de envolver otimização de processos computacionais envolve controlar a complexidade das soluções de problemas computacionais.

http://bluestripe.com/blog/bluestripe-blog/2012/07/16/infrastructure-complexity-the-problem-that-will-not-go-away/

Page 10: Produtividade com ZF2, PDT & Zend Server Free Edition

Programador de Computadores

“Se quiser programadores mais efetivos, descobrirão que eles não devem desperdiçar tempo debugando, eles não devem introduzir bugs para começo de conversa.”

Edsger Djikstra

* http://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340.html

Page 11: Produtividade com ZF2, PDT & Zend Server Free Edition

Mas como não introduzir bugs?

Page 12: Produtividade com ZF2, PDT & Zend Server Free Edition

Como não cometer erros?

Page 13: Produtividade com ZF2, PDT & Zend Server Free Edition

Ninguém é perfeito!

Page 14: Produtividade com ZF2, PDT & Zend Server Free Edition

Mas errar é bom!

● “É errando que se aprende”● "Os sábios aprendem com os erros dos

outros, os tolos com os próprios erros e os idiotas não aprendem nunca." (provérbio chinês)

Page 15: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

● Um framework é o aprendizado de programadores registrado na forma de código.

● Você evita cometer erros ao usar um framework, pois outros programadores já erraram várias vezes para criá-lo.

Page 16: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

● Softwares como Magento e SugarCRM usam componentes do Zend Framework 1 em vez de implementar seus próprios.

Page 17: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

● Usar um componente em vez de criá-lo evita gastar energia em reinventar uma solução, destinando-a ao aperfeiçoamento de soluções existentes.

SÓ É POSSÍVEL APERFEIÇOAR O QUE JÁ EXISTE

Page 18: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

Como eu faço a mesma coisa em menos tempo?

Page 19: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

Como eu faço a mesma coisa em menos tempo?

Deixando de fazer algo!

Page 20: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

Qual é o jeito mais rápido de chegar ao outro lado da rua?

Page 21: Produtividade com ZF2, PDT & Zend Server Free Edition

Framework

Qual é o jeito mais rápido de chegar ao outro lado da rua?

Estando do outro lado!

Page 22: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Framework 2

● Zend Framework 2 é um conjunto de lições aprendidas de como se resolver determinados problemas com a linguagem de programação PHP.

● Como segunda versão, ele também é o conjunto de lições aprendidas com o uso da primeira versão.

Page 23: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Authentication, Barcode, Cache, Captcha, Code\Generator, Config, Console, Crypt, Db, Debug, Di, Dom, Escaper, EventManager, Feed, File, Filter, Form, Http, i18n, InputFilter, Json, Ldap, Loader, Log, Mail, Math, Memory, Mime, ModuleManager, Mvc, Navigation, Paginator, Permissions, ProgressBar, Serializer, Server, ServiceManager, Session, Soap, Stdlib, Tag, Test, Text, Uri, Validator, Version, View, XmlRpc.

Page 24: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Authentication, Barcode, Cache, Captcha, Code\Generator, Config, Console, Crypt, Db, Debug, Di, Dom, Escaper, EventManager, Feed, File, Filter, Form, Http, i18n, InputFilter, Json, Ldap, Loader, Log, Mail, Math, Memory, Mime, ModuleManager, Mvc, Navigation, Paginator, Permissions, ProgressBar, Serializer, Server, ServiceManager, Session, Soap, Stdlib, Tag, Test, Text, Uri, Validator, Version, View, XmlRpc.

Page 25: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Authentication, Barcode, Cache, Captcha, Code\Generator, Config, Console, Crypt, Db, Debug, Di, Dom, Escaper, EventManager, Feed, File, Filter, Form, Http, i18n, InputFilter, Json, Ldap, Loader, Log, Mail, Math, Memory, Mime, ModuleManager, Mvc, Navigation, Paginator, Permissions, ProgressBar, Serializer, Server, ServiceManager, Session, Soap, Stdlib, Tag, Test, Text, Uri, Validator, Version, View, XmlRpc.

Page 26: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

DebugLogTest

Page 27: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Debug

Page 28: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Log

Page 29: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Test“A única forma efetiva de aumentar o nível de confiança de um programa significativamente é dar uma prova convincente de sua correção.”

Edsger Djikstra *

* http://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340.html

Page 30: Produtividade com ZF2, PDT & Zend Server Free Edition

O que o Zend Framework 2 tem?

Test

Page 31: Produtividade com ZF2, PDT & Zend Server Free Edition

Onde eu encontro o ZF2?

http://framework.zend.com

Page 32: Produtividade com ZF2, PDT & Zend Server Free Edition

Experimente na nuvem!

http://framework.zend.com/downloads/phpcloud

Page 33: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 34: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 35: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 36: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 37: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 38: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 39: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 40: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 41: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 42: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 43: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 44: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 45: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 46: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 47: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 48: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 49: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 50: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 51: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 52: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 53: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Eclipse PDT

Page 54: Produtividade com ZF2, PDT & Zend Server Free Edition

Onde eu encontro o PDT?

https://www.zend.com/en/company/community/pdt/downloads

Page 55: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 56: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 57: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 58: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 59: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 60: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 61: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 62: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 63: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 64: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 65: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 66: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 67: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 68: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 69: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 70: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 71: Produtividade com ZF2, PDT & Zend Server Free Edition

Zend Server Free Edition

Page 72: Produtividade com ZF2, PDT & Zend Server Free Edition

Onde eu encontro o Zend Server Free Edition?

http://www.zend.com/en/products/server/free-edition

Free != Open

Page 73: Produtividade com ZF2, PDT & Zend Server Free Edition

Por hoje é só, pessoal!

www.fgsl.eti.br