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

Code Reading

Code Reading

Learning More about Ruby by Reading Ruby Source Code'

高見龍

May 31, 2013
Tweet

More Decks by 高見龍

Other Decks in Programming

Transcript

  1. I’m a Python guy (≈ 2 years) I’m a iOS

    app guy (≈ 2 years) I’m a Flash guy (≈ 8 years) I’m a Ruby guy (≈ 4 years)
  2. http://blog.rubybestpractices.com/posts/gregory/005-code-reading-stdlib.html “once you start digging around in someone else’s code

    base, you’ll learn a lot about your own strengths and weaknesses” - Ruby Best Practice
  3. people = { "Eddie" => ["green", "[email protected]"], "Joanne" => ["yellow",

    "[email protected]"] } people.map { |name, (color, email)| puts [name, email] }
  4. parse.y#8277-8299 shadowing_lvar_gen( ) people = { "Eddie" => ["green", "[email protected]"],

    "Joanne" => ["yellow", "[email protected]"] } people.map { |name, (_, email)| puts [name, email] }
  5. 高見龍 Contacts photo by Eddie Website Blog Plurk Facebook Google

    Plus Twitter Email Mobile http://www.eddie.com.tw http://blog.eddie.com.tw http://www.plurk.com/aquarianboy http://www.facebook.com/eddiekao http://www.eddie.com.tw/+ https://twitter.com/#!/eddiekao [email protected] +886-928-617-687