Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CW 31: Ruby - Filipe Giusti
Search
hackthursday
August 02, 2012
Programming
58
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CW 31: Ruby - Filipe Giusti
hackthursday
August 02, 2012
Transcript
14 slides
Ruby Elegância e expressividade
Ruby • Tipo de linguagem • Interpretadores • Sintaxe •
Objetos & Mensagens • Features • Tools • Rack • Rails • Sinatra
Ruby - Interpretadores • MRI - Matz's 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
More Decks by hackthursday
See All by hackthursday
CW 36: Joomla! for dummies - Jerônimo Medina Madruga
hackthursday
1
73
CW 35: Node.JS - Guilherme Quental
hackthursday
1
57
CW 34: Bus1.me - Rafael Silva
hackthursday
2
64
CW 33: Pathfinding - Vinicius Maciel
hackthursday
1
49
CW 26: Computação Gráfica - Lucas Texeira
hackthursday
1
65
CW 25: Object Calisthenics - Vinícius Krolow
hackthursday
1
120
Other Decks in Programming
See All in Programming
AppFunctionsの内部実装を紐解く
hiroaki404
0
120
小さなアプリを作って公開するまで
onozaty
0
240
SODA - FACT BOOK(EN)
sodainc
1
280
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
LLM 101
dalinaum
0
540
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
440
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
420
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
AI Augmentation Techniques with Liberty
ivargrimstad
1
560
特急いなほ as a Workflow / 20261107jaws-festa-2026-akita-lt
kasacchiful
PRO
0
110
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
670
Featured
See All Featured
Accessibility Awareness
sabderemane
1
310
The SEO Collaboration Effect
kristinabergwall1
1
630
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
WCS-LA-2024
lcolladotor
0
1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
390
The agentic SEO stack - context over prompts
schlessera
0
1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
A better future with KSS
kneath
240
18k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Practical Orchestrator
shlominoach
192
12k