• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Ruby
 

Ruby

on

  • 456 views

Quick presentation for Hack Thursday.

Quick presentation for Hack Thursday.
http://hackthursday.github.com/

Statistics

Views

Total Views
456
Views on SlideShare
401
Embed Views
55

Actions

Likes
0
Downloads
3
Comments
0

3 Embeds 55

http://hackthursday.com 32
http://hackthursday.github.com 22
http://rssilva.github.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Ruby Ruby Presentation Transcript

    • RubyElegância e expressividade
    • Ruby● Tipo de linguagem● Interpretadores● Sintaxe● Objetos & Mensagens● Features● Tools● Rack● Rails● Sinatra
    • Ruby - Interpretadores● MRI - Matzs Ruby Interpreter● YARV - Yet Another Ruby VirtualMachine● Jruby - JVM● Rubinius – Ruby em Ruby● IronRuby - .NET● MacRuby – Objective C
    • Ruby – Tipo de linguagem● Tipagem Dinâmica● OO● Fortemente tipada● Garbage collection
    • Ruby - Sintaxe● Constante● ::EscopoGlobal● variavel_local● @variavel_de_objeto● @@variavel_de_class● 2● 2.3● “string #{interpolada}”
    • Ruby - Sintaxe● :symbol● [1, 2]● { :ola => voce } ou { ola: voce }● raise HelpError unless world.is_safe?● drink while ! beer.nil?● for nerd in @dj_house; nerd.eat(meat); end● case; when; default; end● 3.times { puts Hurra! }
    • Ruby - Sintaxe● 3.times do; puts Hurra!; end● 1..10● Imprimir ímpares de 1 a 20 em ordem inversa
    • Ruby – Objetos e Mensagens● (Quase) Tudo são objetos.● (Quase) Todas as interações são feitas com troca de mensagens● 1+1● 1.+(1)● 1.send(+, 1)
    • Ruby – Objetos e Mensagens
    • Ruby - features● Suporte a introspecção (respond_to)● Redefinição de métodos● Classes abertas● method_missing● Sem overload de métodos● Herança múltipla com mixins● const_missing
    • Ruby - Tools● Gems● bundle● Webservers ● Thin ● Passenger ● Unicorn ● JVM● RVM e rbenv
    • Ruby - Rack● Ruby Webserver Interface● API minimalista para os frameworks web● config.ru
    • Ruby - Rails● MVC● Routing● Middleware● Migrations● Helpers
    • Ruby - Sinatra● DSL para aplicações web● Views ● haml :index● Helpers ● enable :sessions