Ruby Video
Talks
Speakers
Events
Topics
Leaderboard
Sign in
Talks
Speakers
Events
Topics
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
When attempting to solve our latest 367 hidden gems of ruby 1 9programming conundrum, we typically reach for the latest Ruby Gem that solves the problem for us. Oftentimes in our search for a solution, we neglect to look through some of the great libraries that come shipped with Ruby. In this talk we'll explore some of the tools we can use that don't require a gem install. We'll especially focus on the new toys in Ruby's standard library that ship with Ruby 1.9, but also look at some of the toys that ship with Ruby Classicâ„¢. Be prepared to be amazed and entertained. But most of all, be prepared to go home with something useful! Help us caption & translate this video! http://amara.org/v/GZSe/
Date
Summary
Markdown supported
The video titled "Hidden Gems of Ruby 1.9" features Aaron Patterson, a Ruby core committer, discussing the lesser-known yet valuable components of Ruby's standard library introduced in version 1.9. The presentation aims to enlighten developers on tools that do not require external gems and demonstrate their practical applications. ### Key Points Discussed: - **Introduction to Aaron Patterson**: Patterson introduces himself, mentioning his work in open source at AT&T and hints at his humor regarding his career path. - **Presentation Style**: The talk is split into two segments—first a humorous introduction followed by the serious practical content focused on Ruby 1.9. - **Upgrade to Ruby 1.9**: He strongly encourages upgrading to Ruby 1.9.2 for its improved features and functionalities. - **MiniTest**: Patterson highlights MiniTest, noting its differences from traditional unit testing in Ruby, such as using `minitest/autorun` and introducing methods like `refute` and `skip`, which enhance testing capabilities. - **ObjectSpace Enhancements**: Introduced methods in `ObjectSpace` are discussed, including `count_objects`, `size_of`, `count_nodes`, and `count_data_objects`, which provide insights into memory usage and garbage collection. - **Fiddle**: Patterson presents Fiddle as a wrapper for the libffi library, explaining its use for calling native methods and its functionality compared to the deprecated DL. - **Psych**: The video discusses Psych, the YAML parser in Ruby, which supports JSON parsing and event-driven parsing, making it easier for developers to manage structured data. - **Code Coverage**: The coverage library is mentioned, detailing its methods to track which parts of the code were executed during tests, allowing developers to optimize performance effectively. ### Conclusion and Takeaways: Patterson concludes by emphasizing the importance of understanding the Ruby standard library's capabilities and encourages developers to explore these "hidden gems". He reiterates the significance of these tools in improving code quality and efficiency in development workflows. Overall, attendees gain valuable insights into advanced features of Ruby 1.9 that can be consistently utilized without relying heavily on external gems, thus broadening Ruby's ecosystem for developers.
Suggest modifications
Cancel