introdução ao rails (linguagil)
DESCRIPTION
Palestra de introdução ao RailsTRANSCRIPT
![Page 1: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/1.jpg)
![Page 2: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/2.jpg)
![Page 3: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/3.jpg)
![Page 4: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/4.jpg)
E-Genial
2009 - Ruby on Rails
2008 - Adobe Flex 3
MAIS DE 200 ALUNOS
![Page 5: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/5.jpg)
COMUNIDADE
![Page 6: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/6.jpg)
![Page 7: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/7.jpg)
Quem adora programar ?
![Page 8: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/8.jpg)
1995
![Page 9: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/9.jpg)
![Page 10: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/10.jpg)
Melhor amigo
![Page 11: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/11.jpg)
Melhor Amigo
Class Circle
private Coordinate center, float radius;
public void setCenter(Coordinate center)
{
this.center = center;
}
public Coordinate getCenter()
{
return center;
}
end;
![Page 12: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/12.jpg)
Melhor Amigo
class Circle
attr_accessor :center
end
![Page 13: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/13.jpg)
Legível e Humana
take_photo if @camera.on? and @camera.have_space?
1.day.ago
5.times { print "ruby " }
![Page 14: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/14.jpg)
Orientada a ObjetosJava == OC
Tudo é um objeto
Não existem funções, apenas métodos
![Page 15: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/15.jpg)
OOP de verdade
>> 1.class=> Fixnum>> 2.class=> Fixnum>> 2.class.class=> Class
![Page 16: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/16.jpg)
1990 - Oriente
2000 - Ocidente
![Page 17: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/17.jpg)
Instalando
• Mac OS - já vem instalado
• Linux - apt, yum e etc
• Win - Ruby one Click Instaler, EasyRails, etc
![Page 18: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/18.jpg)
Conhecendo o IRB
![Page 19: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/19.jpg)
![Page 20: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/20.jpg)
![Page 21: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/21.jpg)
![Page 22: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/22.jpg)
![Page 23: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/23.jpg)
![Page 24: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/24.jpg)
• Open source
• Free
• Comunidade robusta
• Documentado
![Page 25: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/25.jpg)
Don’t Repeat your self
Convention over configuration
Produtividade Sustentável
Diversão
Software de opinião
![Page 26: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/26.jpg)
! Nomes de arquivos! Nomes de tabelas do DB! Mapeamentos! Chaves do DB! Nomes de Classes! Ambientes! ...
Convention over Conf.
![Page 27: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/27.jpg)
Don’t Repeat Your Self
GEMS Plugins
generators, templates, engines, partials, etc
![Page 28: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/28.jpg)
Não se repita
Convenção sobre config.+
Produtividade Sustentável (Diversão e Qualidade)
=
![Page 29: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/29.jpg)
Mas e na prática ?
![Page 30: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/30.jpg)
arranhão superficial
![Page 31: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/31.jpg)
mais a fundo
![Page 32: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/32.jpg)
BOM RAILER=
BOM DESENVOLVEDOR
![Page 33: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/33.jpg)
DIA A DIA
pouco código e repetição=
manutenção e qualidade
![Page 34: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/34.jpg)
DIA A DIA
Código no local corretoMVC done right
![Page 35: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/35.jpg)
DIA A DIA
Divisão de ambientes
•DEVELOPMENT•PRODUCTION•TESTS
![Page 36: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/36.jpg)
DIA A DIA
URL bangunçadas?
NÃO!!! Rotas!
![Page 37: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/37.jpg)
DIA A DIAINTERNACIONALIZAÇÃO
![Page 38: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/38.jpg)
DIA A DIA
• Independência de DB• Fácil de alterar tabelas, etc.• Alterações versionadas
![Page 39: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/39.jpg)
DIA A DIA
Logs de forma automática
![Page 40: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/40.jpg)
DIA A DIA
AJAX de forma simples
•RJS (Javascript em Ruby)•Prototype e Scriptaculous•Jquery ...
![Page 41: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/41.jpg)
DIA A DIA
TESTES AUTOMATIZADOS(todo list)
![Page 42: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/42.jpg)
DIA A DIA
Template é XHTMLDesigners são bem vindos
![Page 43: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/43.jpg)
Ruby on Rails
• Pouco Código e legível• Graças ao Ruby• E sempre Inovador
![Page 44: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/44.jpg)
Cópias on Rails
![Page 45: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/45.jpg)
Rails existe pelo Ruby
![Page 46: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/46.jpg)
Rails e Rubysão inovadores
![Page 47: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/47.jpg)
O inovadornão pode ser
replicado
![Page 48: Introdução ao Rails (Linguagil)](https://reader037.vdocuments.net/reader037/viewer/2022102805/555930ffd8b42a543d8b4923/html5/thumbnails/48.jpg)
F I M