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
1.1k
The Road to Ruby Mastery (RailsClub Moscow 2017)
Slide-deck from my presentation at RailsClub Moscow 2017.
Bozhidar Batsov
September 23, 2017
Tweet
Share
More Decks by Bozhidar Batsov
See All by Bozhidar Batsov
Weird Ruby (RubyDay 2024, Verona)
bbatsov
0
110
Sustainable OSS (Balkan Ruby 2024, Sofia)
bbatsov
0
120
Ruby's Creed (RubyDay 2023, Verona)
bbatsov
0
10
Victims of Complexity
bbatsov
0
300
Ruby 3.0 Redux (Spark Academy, Jan 2021)
bbatsov
1
250
Ruby 3.0 Redux (Pivorak 4.0)
bbatsov
0
430
The Elements of Programming Style (HackConf 2019)
bbatsov
0
170
The Groundhog Day Development Method (HackConf 2019)
bbatsov
0
250
CIDER Distilled: A Common Foundation for Clojure Tooling
bbatsov
0
260
Other Decks in Programming
See All in Programming
HTML/CSS超絶浅い説明
yuki0329
0
190
return文におけるstd::moveについて
onihusube
1
1.4k
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
180
AHC041解説
terryu16
0
390
ゼロからの、レトロゲームエンジンの作り方
tokujiros
3
1k
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
420
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.4k
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
1.9k
ErdMap: Thinking about a map for Rails applications
makicamel
1
640
Findy Team+ Awardを受賞したかった!ベストプラクティス応募内容をふりかえり、開発生産性向上もふりかえる / Findy Team Plus Award BestPractice and DPE Retrospective 2024
honyanya
0
140
BEエンジニアがFEの業務をできるようになるまでにやったこと
yoshida_ryushin
0
200
Featured
See All Featured
Optimizing for Happiness
mojombo
376
70k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
YesSQL, Process and Tooling at Scale
rocio
170
14k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
19
2.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
A designer walks into a library…
pauljervisheath
205
24k
Making Projects Easy
brettharned
116
6k
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