Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Road to Ruby Mastery (RailsClub Moscow 2017)

The Road to Ruby Mastery (RailsClub Moscow 2017)

Slide-deck from my presentation at RailsClub Moscow 2017.

Bozhidar Batsov

September 23, 2017
Tweet

More Decks by Bozhidar Batsov

Other Decks in Programming

Transcript

  1. 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]]
  2. 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'
  3. Elm