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

HOW TO READ HUGE OPEN SOURCE CODE EASILY

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

HOW TO READ HUGE OPEN SOURCE CODE EASILY

for RailsConf 2019 LT

Avatar for yhirano55

yhirano55

May 01, 2019

More Decks by yhirano55

Other Decks in Technology

Transcript

  1. self.inspect ➤Yoshiyuki Hirano from JAPAN ➤GitHub: @yhirano55 ➤Twitter: @yoshi_hirano ➤Rails

    Contributors #62 ➤I’m chief organizer of “Railsdm” ➤I love Rails community
  2. MORE QUESTIONS ➤Do you know the request/response Lifecycle of Rails

    application? ➤Do you know the steps of Active Record's create, update, validate, and destroy? ➤Do you know the processing of initialization of Rails application?
  3. AND.. ➤I want to read the code of its lifecycle

    of Rails application ➤But I don't want to spend much time to trace the code ➤I want to read source code easily. What would you do?
  4. It helps you can get tracing the processing of the

    Lifecycle of Rails application easily!!
  5. HOW IT WORK? ➤Use TracePoint that is a Ruby standard

    API ➤TracePoint API is one of the BLACK MAGIC in Ruby
  6. In making this gem, I used TracePoint for the first

    time. It makes me really feel so good!!
  7. self.inspect ➤Yoshiyuki Hirano from JAPAN ➤GitHub: @yhirano55 ➤Twitter: @yoshi_hirano ➤Rails

    Contributors #62 ➤I’m chief organizer of “Railsdm” ➤I love Rails community