introdução ao ruby on rails (sociesc)
DESCRIPTION
Palestra "Introdução ao Ruby on Rails", apresentado para turma de Tecnologia em Desenvolvimento de Sistemas para Internet da SOCIESC, em Joinville, no dia 10 de junho de 2007 (2007-06-10), para aproximadamente 40 alunos.TRANSCRIPT
![Page 2: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/2.jpg)
Novas Tecnologias
![Page 3: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/3.jpg)
Novas Tecnologias
Antigamente:Baixo poder de processamento;Necessidade de código de “baixo” nível;Programador é submisso àprogramação.
![Page 4: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/4.jpg)
Novas Tecnologias
![Page 5: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/5.jpg)
Novas Tecnologias
Atualmente: Alto poder de processamento; Possibilidade de programação em altíssimo nível; Programação é uma
ferramenta agradável(divertida?) para oprogramador.
![Page 6: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/6.jpg)
![Page 7: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/7.jpg)
Web 2.0
O'Reilly Media em 2003, divulgado em 2004; Define segunda geração de comunidades web e
serviços online; Colaboração e compartilhamento entre usuários; Presente em 300 milhões de páginas.
![Page 8: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/8.jpg)
Web 2.0
![Page 9: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/9.jpg)
![Page 10: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/10.jpg)
MVCMVC
![Page 11: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/11.jpg)
ViewController
Model
Cliente
BD
HTTPd
![Page 12: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/12.jpg)
![Page 13: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/13.jpg)
O que é Ruby?
Desenhado por 松本行弘松本行弘 (Yukihiro Matsumoto); Lançado a primeira vez em 1995; Linguagem de script de código livre; Comunidade ativa e “não ditatorial”; Segue o “Principle of Least Surprise”; Ênfase na simplicidade e elegância; Altamente portável.
![Page 14: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/14.jpg)
Algumas vantagens do Ruby
Sintaxe simples, parcialmente inspirada por Eiffel e Ada;
Tratamentos de exceções assim como Java e Python; 100% orientado à objeto (diferentemente de Java,
Python e Perl); Herança única, porém com coleções de métodos
(módulos); Possibilidade de adicionar novas classes e modificar
métodos em runtime.
![Page 15: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/15.jpg)
Exemplo Ruby: Tudo é um objeto
![Page 16: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/16.jpg)
Exemplo Ruby: Elegância é tudo
![Page 17: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/17.jpg)
Exemplo Ruby
http://tryruby.hobix.com/
![Page 18: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/18.jpg)
![Page 19: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/19.jpg)
O que é Ruby on Rails?
Framework para aplicações Web
![Page 20: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/20.jpg)
O que é Ruby on Rails?
Template paraaplicações Web
![Page 21: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/21.jpg)
Citação
“Rails is a full-stack, open-source web framework in Ruby for writing real-world applications with joy and less code than most frameworks spend doing XML
sit-ups.”David H. Hansson
![Page 22: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/22.jpg)
O que é Ruby on Rails?
Aplicação web de código livre escrito em Ruby; Desenvolvido pela empresa 37Signals; Utilização da metodologia MVC baseado em
templates; Mapeamento de dados integrado; Muito menos complicado que ferramentas
J2EE, porém mais complexo que PHP e Perl;
![Page 23: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/23.jpg)
O que faço no Ruby on Rails?
“Apenas preencha os espaços em branco.”
David Heinemeier Hansson
![Page 24: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/24.jpg)
O que faço no Ruby on Rails?
“Apenas preencha os espaços em branco.”
David Heinemeier Hansson
![Page 25: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/25.jpg)
Sopa de letrinhas do Rails
CoC (Convention over Configuration); DRY (Don't Repeat Yourself); KISS (Keep It Simple, Stupid); Codificação mínima com efeito
máximo.
![Page 26: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/26.jpg)
Java e Ruby on Rails
![Page 27: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/27.jpg)
E a Web 2.0?
Foco na Web 2.0;AJAX & JSON;Prototype + Script.aculo.us.
![Page 28: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/28.jpg)
Exemplo de Model
![Page 29: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/29.jpg)
Livros Recomendados
![Page 30: Introdução ao Ruby on Rails (SOCIESC)](https://reader036.vdocuments.mx/reader036/viewer/2022062307/555ad664d8b42a024a8b4be0/html5/thumbnails/30.jpg)
Site oficial
www.rubyonrails.org