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
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
370
Extracting services from a monolith
janogonzalez
3
320
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
550
Microservices in Practice
janogonzalez
7
740
Two programmers in one
janogonzalez
1
250
The Bipolar Programmer
janogonzalez
4
680
Ruby for Java minds
janogonzalez
4
1.2k
How Ruby Programmed Me
janogonzalez
11
570
Other Decks in Programming
See All in Programming
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
340
ChromeでローカルLLM
ryu1013
0
120
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
110
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
330
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
250
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
140
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
780
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
360
最近”作らせてる” ローカルAIアプリの話
akit37
0
460
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
130
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
430
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
For a Future-Friendly Web
brad_frost
184
10k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Test your architecture with Archunit
thirion
2
2.4k
Making the Leap to Tech Lead
cromwellryan
135
10k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
4 Signs Your Business is Dying
shpigford
187
23k
Paper Plane (Part 1)
katiecoart
PRO
2
11k
The SEO Collaboration Effect
kristinabergwall1
1
590
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