$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introdução ao Ruby
Search
Brian Thomas Storti
June 01, 2012
Programming
6
230
Introdução ao Ruby
Brian Thomas Storti
June 01, 2012
Tweet
Share
More Decks by Brian Thomas Storti
See All by Brian Thomas Storti
Maturidade de APIs REST
brianstorti
1
260
Ruby object model e metaprogramação
brianstorti
5
300
Other Decks in Programming
See All in Programming
DSPy Meetup Tokyo #1 - はじめてのDSPy
masahiro_nishimi
1
130
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
10
10k
ソフトウェア設計の課題・原則・実践技法
masuda220
PRO
24
20k
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
350
JEP 496 と JEP 497 から学ぶ耐量子計算機暗号入門 / Learning Post-Quantum Crypto Basics from JEP 496 & 497
mackey0225
2
550
スタートアップを支える技術戦略と組織づくり
pospome
8
14k
tparseでgo testの出力を見やすくする
utgwkk
1
100
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
400
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
260
モダンJSフレームワークのビルドプロセス 〜なぜReactは503行、Svelteは12行なのか〜
fuuki12
0
180
AIコードレビューがチームの"文脈"を 読めるようになるまで
marutaku
0
270
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 1
philipschwarz
PRO
0
120
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Music & Morning Musume
bryan
46
7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
960
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
Transcript
None
Brian Thomas Storti @brianstorti http://brianstorti.tumblr.com
Dinâmica Orientada a objetos Fortemente tipada Open source Sintaxe elegante
“Ruby is designed to make programmers happy” Yukihiro Matsumoto, criador
do Ruby
Sintaxe
None
None
None
None
None
None
None
Construtor
None
Parâmetros opcionais
None
None
None
Herança
None
None
None
None
None
Métodos com caracteres especiais
mais expressividade
None
Blocos
None
Blocos também podem ter parâmetros
None
None
None
Módulos 2 Utilizações comuns
1 Namespaces
None
2 Mixins
None
None
Iterações
None
None
None
None
None
None
None
None
None
None
Condicionais
None
None
None
None
None
Hashes
None
None
Symbols
None
None
Modificadores de acesso
None
None
None
None
None
None
Exceções
None
None
None
Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto
Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto em ruby, quase tudo é um
None
None
None
classes também são Objetos e o nome de uma classe
é apenas uma constante
None
Objeto variáveis de instância + link para classe
Classe métodos de instância + link para superclasse
Classes sses abertas Classes abertas são abertas Classes abert sses
abertas Classes abertas Classes abert asses abertas Classes abertas Classes aber sses abertas Classes abertas Classes abert asses abertas Classes abertas Classes aber asses abertas
None
None
None
Testes
Principais opções Test::Unit RSpec built-in gem install rspec
Test::Unit
None
None
None
RSpec
None
None
None
None
None
None
brianstorti.tumblr.com twitter+github @brianstorti