Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Ruby 2 Methodology by Akira Matsuda This talk focuses on "Method" in Ruby. Although Method is the key feature of an OOP language like Ruby, Ruby's Method is still drastically evolving. This session is a quick tour on new features and changes around Method in recent versions of the Ruby language. Not just introducing the APIs, we'll also show you lots of interesting stories behind these features, and real-world code examples. Through this session, you'll probably learn some modern methods of Ruby programming that you did never know. Help us caption & translate this video! http://amara.org/v/H0pe/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video titled "Ruby 2 Methodology" features Akira Matsuda's presentation at RubyConf 2015, focusing on the evolving concept of methods in Ruby. Matsuda provides an in-depth examination of modern usages of Ruby's methods, highlighting new features and sharing personal insights alongside practical examples. Key points discussed in the video include: - **Definition of Methods**: Methods in Ruby are defined using the 'def' keyword, with the possibility of unconventional names, including emojis, which can enrich the method naming experience. - **Dynamic Method Calls**: The 'send' method allows dynamic method calls and enables calling methods from outside scopes, enhancing flexibility in method invocation. - **Method Scopes**: Ruby includes three method visibility types: public, protected, and private. Matsuda shares insights on correctly using private and protected methods, encouraging developers to use protected sparingly. - **Method Documentation Issues**: Challenges in method documentation arise due to the behavior of the 'private' keyword and the inadequacies of RDoc. Matsuda discusses the need for patches to improve documentation consistency in Rails. - **Method Objects**: Method objects allow methods to be extracted and bound to different classes, facilitating method transplantation, which is useful for Rails monkey patches. - **Parameters and Keyword Arguments**: Ruby 1.9's parameter inspection and Ruby 2.0's introduction of keyword arguments simplify method parameter handling and enhance API design. Challenges with reserved keyword conflicts are acknowledged. - **Module Prepend for Monkey Patching**: Matsuda explains how module prepend offers a better alternative to legacy alias method chains, resulting in a cleaner approach to monkey patching. - **Super Methods and Refinements**: With the introduction of super methods in Ruby 2.2 and refinements in Ruby 2.0, developers gain better control over method inheritance and private methods, reducing the pollution in the method namespace. In conclusion, Matsuda stresses the importance of engaging with these evolving features of Ruby methods to enhance programming practices and the overall Ruby experience. He encourages developers to keep exploring these advancements to enrich their Ruby development journey.
Suggest modifications
Cancel