Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Road to Ruby Mastery (RailsClub Moscow 2017)
Search
Bozhidar Batsov
September 23, 2017
Programming
1.3k
1
Share
The Road to Ruby Mastery (RailsClub Moscow 2017)
Slide-deck from my presentation at RailsClub Moscow 2017.
Bozhidar Batsov
September 23, 2017
More Decks by Bozhidar Batsov
See All by Bozhidar Batsov
Clojure: The Bad Parts
bbatsov
0
92
Weird Ruby (RubyDay 2024, Verona)
bbatsov
0
180
Sustainable OSS (Balkan Ruby 2024, Sofia)
bbatsov
0
180
Ruby's Creed (RubyDay 2023, Verona)
bbatsov
0
48
Victims of Complexity
bbatsov
0
340
Ruby 3.0 Redux (Spark Academy, Jan 2021)
bbatsov
1
280
Ruby 3.0 Redux (Pivorak 4.0)
bbatsov
0
500
The Elements of Programming Style (HackConf 2019)
bbatsov
0
210
The Groundhog Day Development Method (HackConf 2019)
bbatsov
0
300
Other Decks in Programming
See All in Programming
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
250
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
210
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
450
2026年のソフトウェア開発を考える(2026/05版) / Software Engineering Scrum Fest Niigata 2026 Edition
twada
PRO
19
9.9k
Don't Prompt Harder, Structure Better
kitasuke
0
810
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1k
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
110
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
300
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
180
【26新卒研修】OpenAPI/Swagger REST API研修
dip_tech
PRO
0
130
tRPCの概要と少しだけパフォーマンス
misoton665
2
260
Featured
See All Featured
Practical Orchestrator
shlominoach
191
11k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
690
Are puppies a ranking factor?
jonoalderson
1
3.4k
Designing for Timeless Needs
cassininazir
0
210
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
140
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
390
Transcript
None
Божидар
I’m back
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Большое спасибо!
Большое спасибо!
Sofia, Bulgaria
Sofia, Bulgaria
None
I’m an Emacs fanatic
bbatsov
None
None
They call me Master…
… and I’m a Rubyist
I must be The Master Rubyist!
None
This guy is so deep and profound!
The Road to Ruby Mastery by Bozhidar Batsov
Master
having or showing very great skill or proficiency
None
Novice
a person new to and inexperienced in a job or
situation
None
Journeyman
a worker, performer, or athlete who is experienced and good
but not excellent
None
Dreyfus Model of Skill Acquisition
Novice Advanced Beginner Competent Proficient Expert
The Road to Mastery
None
not really
try 10 years
http://norvig.com/21- days.html Teach Yourself Programming in Ten Years Peter Norvig
Apprenticeship
Novice Journeyman Master Apprenticeship Apprenticeship
learning from others
directly
indirectly
Computer Science Fundamentals
None
None
None
None
None
None
None
None
None
None
None
Object-oriented programming
None
Ruby is a purely object- oriented language
None
None
Know Thy Language!
Crazy People
None
Ruby is a VERY COMPLEX language!
class instance variable
protected
module_function vs extend self
refinements
super vs super()
== === equal? eql?
None
None
Grokking the language
Understanding and appreciating its philosophy
Coming to grips with reality
(no language is perfect)
(not even Clojure)
(some languages really suck)
Master the idioms
for i in 1..3 puts "Hello, Moscow!” end
3.times do puts "Hello, Moscow!” end
if some_condition then # body omitted end
def some_method # ... return result end
None
None
None
Read some (good) code
some == A LOT
None
Obtain a notion of style
None
None
Ruby Style Guide
None
Tackle problems with style
None
puts debugging sucks
bla bla bla puts ‘********’ puts x puts ‘********’
None
pro “puts” debugging techniques
object = Object.new puts object.method(:blank?).source_location # => ["/gems/activesupport-5.0.0.beta1/ lib/active_support/core_ext/object/ blank.rb",
14]
class Bar def foo puts "=====================" puts caller end end
def foo puts method(:foo).super_method.source_location super end
def parse(input, skip_code_comments: false, ignore_whitespace: true) # do stuff end
method(:parse).parameters #=> [[:req, :input], [:key, :skip_code_comments], [:key, :ignore_whitespace]]
config.thing = { "foo" => "bar" } config.thing.freeze = {
"foo" => "bar" } config.thing.delete("foo") # active_support/concurrency/share_lock.rb:151:in `delete': can't modify frozen Hash (RuntimeError) # from active_support/concurrency/share_lock.rb:151:in `yield_shares' # from active_support/concurrency/share_lock.rb:79:in `block in stop_exclusive'
Ruby Debugging Magic Cheat Sheet http://www.schneems.com/2016/01/25/ruby-debugging-magic-cheat- sheet.html
I am a puts debugger https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html
I am not a puts debugger!
byebug https://github.com/deivid-rodriguez/byebug
pry-byebug https://github.com/deivid-rodriguez/pry-byebug
Profiling stuff
ruby-prof https://github.com/ruby-prof/ruby-prof
memory_profiler https://github.com/SamSaffron/memory_profiler
None
Beyond Rails
Opal
RubyMotion
System administration
JRuby
Alternative web frameworks
Hanami
Padrino
Sinatra
Roda
Keep in sync
RubyWeekly
Ruby5
RubyRogues
RubyTapas
GoRails
RailsClub
RubyConf
RailsConf
Always be exploring!
Clojure
Haskell
Elm
Erlang/Elixir
Racket
Ideas from other programming languages make us better programmers
One more thing…
Ruby is simply not a good fit for every possible
problem
None
None
ФЕЛИНА
Епилог twitter: @bbatsov github: @bbatsov http//batsov.com http://emacsredux.com RailsClub Moscow, Russia
23.09.2017