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
Ruby for your two internal programmers
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Jano González
October 03, 2013
Programming
310
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby for your two internal programmers
My Arrrrcamp 2013 talk
Jano González
October 03, 2013
More Decks by Jano González
See All by Jano González
Containerizing your monolith
janogonzalez
0
520
Migrando a Microservicios
janogonzalez
1
360
Extracting services from a monolith
janogonzalez
3
310
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
550
Microservices in Practice
janogonzalez
7
730
Two programmers in one
janogonzalez
1
250
The Bipolar Programmer
janogonzalez
4
670
Ruby for Java minds
janogonzalez
4
1.2k
How Ruby Programmed Me
janogonzalez
11
570
Other Decks in Programming
See All in Programming
WebAssembly in Android Apps 〜 WASMはJNIの夢を見るか
keiji
1
110
App Intentsのビルドプロセスを支える技術
kntkymt
0
390
アクセシビリティから考える情報設計
high_g_engineer
0
380
iOSDC2026登壇資料.pdf
riofujimon
0
170
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
180
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
410
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
140
PL/pgSQLはなぜ「ふつうのSQL」より遅いのか
tameguro
0
110
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
160
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
180
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
130
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
190
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Crafting Experiences
bethany
1
340
Utilizing Notion as your number one productivity tool
mfonobong
4
590
Making Projects Easy
brettharned
120
6.8k
Balancing Empowerment & Direction
lara
6
1.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
A Tale of Four Properties
chriscoyier
163
24k
Practical Orchestrator
shlominoach
192
12k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
730
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
Transcript
None
None
HELLO GHENT!
B - AT = G
PIRATES
RUBY FOR BIPOLAR PROGRAMMERS
$ whoami
@janogonzalez
@hop_in
PIRATES IN CHILE
XVI CENTURY
SIR FRANCIS DRAKE
HERO OR PIRATE?
AKA EL DRAKE
6.5M$ REWARD
SIR FRANCIS DRAKE
SIR FRANCIS DRAKE
HIDDEN TREASURES
ISLA MOCHA
MOCHA DICK
XXI CENTURY
NEW PIRATES
NEW PIRATES
NEW PIRATES
☑ PIRATES ☐ RUBY
A TALE OF TWO DEVELOPERS
HACKER V/S THINKER
HACKER
GET THINGS DONE
FAST
HACKS
MAINTENANCE NIGHTMARE
NEEDS MORE DUCT TAPE
THINKER
THINKS ABOUT ABSTRACTIONS
THINKS ABOUT MAINTAINABILITY
TOO MANY ABSTRACTIONS
ANALYSIS PARALYSIS
NEEDS MORE LAYERS
MY HISTORY
A TRILOGY OF MOVIES
THE HACKER YEARS
THE HACKER YEARS
THE LEARNING YEARS
THE UML YEARS
THE UML YEARS
THE HACKER WAS GONE
UML, RUP, GoF, XML, ETC.
STOCKHOLM SYNDROME
EVOLUTION?
THE ONE TRUE WAY™
THE PATH?
FEAR
I WAS SO WRONG!
EVERYDAY LIFE IS THE PATH
ENTER RUBY
SMALLTALK IN PERL’S DISGUISE
HAPPY THINKER
THINKER class AccountProtectionProxy def initialize(real_account, owner) @subject = real_account @owner
= owner end def method_missing(name, *args) check_access @subject.send(name, *args) end ...
OMG! GoF NEVER WAS SO EASY
HAPPY HACKER
HACKER $1 if str ~= /(foo)+/
ONE LINERS FTW!
HACKER ❤ THINKER
LET’S WORK TOGETHER
HARMONY
HARMONY (1..42).select(&:even?). map { |n| n * 2 }. reduce(&:*)
EXPRESS YOURSELF
EXPRESS YOURSELF File.open('my.txt').each do |line| puts line if line =~
/jano/ end
THE HIDDEN TRUTH
HIDDEN TRUTH $ irb > puts 'Ahoy World!' # Ahoy
World! # => nil
HIDDEN TRUTH > self.class # => Object
HIDDEN TRUTH > Object.included_modules # => [Kernel]
HIDDEN TRUTH > Kernel.methods.include? :puts # => true
THE MOST HIDDEN TRUTH
THE PATH IS NO PATH
THE PATH
WORKING TOGETHER
HACKER
EXPLORE NEW TERRITORY
THINKER
FIND ACCEPTANCE CRITERIA
DEFINE COMPONENTS
BALANCE
DELIVER VALUE V/S DIMINISH TECHNICAL DEBT
CREATIVITY V/S STANDARDIZATION
EXAMPLE
CASE STATEMENT V/S FACTORY + COMMANDS
EXAMPLE case account_type when :premium then # do stuff when
:standard then # do stuff when :personal then # do stuff end
EXAMPLE class AccountAccount def initialize # do stuff end def
execute(context) # do stuff end end
EXAMPLE class PersonalFactory def self.create(type) name = "#{type.capitalize} Account" klass
= Kernel.const_get(name) klass.new end end
EXAMPLE AccountFactory .create(account_type) .execute(context)
IMPLICIT V/S EXPLICIT
CLARITY V/S DRY
CLARITY V/S SRP
NOW V/S FUTURE
MY HUMBLE ADVICE
LEARN ABOUT BEST PRACTICES
DON’T FOLLOW BLINDLY YOUR FUNCTIONAL GURU
DON’T FOLLOW BLINDLY YOUR OO GURU
TESTS + REFACTORING
HOW TO IMPROVE
HACKER
LEARN ABOUT OOP & PATTERNS
TRY IMMUTABILITY & SEQUENCES
DO SEPARATE RESPONSIBILITIES
THINKER
LEARN ABOUT ONE LINERS
TRY CODE GOLF
DO EVIL STUFF
EVERYONE
READ A LOT OF CODE
WRITE A LOT OF CODE
ONE LAST ADVICE
कഁ
SHU कഁ
HA कഁ
RI कഁ
None
CONCLUSIONS
RUBY GIVES YOU FREEDOM
LETS YOU STRIVE FOR BALANCE
AVOID CARGO CULT
GOOD ADVICE V/S LAWS
THERE IS NO TRUE PATH
IF YOU MEET THE BUDDHA IN THE ROAD, KILL HIM!
FOLLOW YOUR ❤
THANK YOU! ❤
IMAGES • http://en.wikipedia.org/wiki/File: 1590_or_later_Marcus_Gheeraerts,_Sir_Francis_Drake_Buckland_Abbey, _Devon.jpg • http://en.wikipedia.org/wiki/File:New_Albion._English_galleon_ %22Golden_Hinde %22_by_Sir_Francis_Drake._Oil_on_canvas._60_x_90_cm..jpg •
http://en.wikipedia.org/wiki/File:DRAKE_1577-1580.png • http://www.vivimoslanoticia.cl/wp-content/uploads/2013/09/Pel %C3%ADculas-piratas.jpg • http://radiopolar.com/images/noticias/20101127174025.jpg • http://upload.wikimedia.org/wikipedia/commons/a/aa/Isla_Mocha_1.jpg • http://www.todayifoundout.com/wp-content/uploads/2011/12/Moby- Dick-3.jpg