Talks
Speakers
Events
Topics
Search
Sign in
Search
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
search talks for
⏎
Suggest modification to this talk
Title
Description
The ruby standard library is full of great code. It's also full of dragons. I'll show you some of fun parts, parts that you may not be using and may not even know about. I'll show you that you don't have to install everything on GitHub to build your application. I'll also look at some of nasty parts, and how to put a training collar on some of those dragons. Help us caption & translate this video! http://amara.org/v/FGbO/
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
In the talk titled "Ruby Batteries Included," Daniel Huckstep explores the extensive capabilities of Ruby's standard library during the MountainWest RubyConf 2013. The core focus is on leveraging built-in functionality to reduce reliance on external gems, thereby simplifying application development. Huckstep outlines the following key points: - **Understanding Gems**: Many applications incorporate numerous gems, leading to unwieldy gem files. Huckstep suggests cleaning up dependencies by utilizing Ruby's standard library, which can reduce the total number of necessary gems. - **Core vs. Standard Library**: The standard library is divided into core components (like Enumerable and String, which are built into the language) and additional libraries that require explicit inclusion. There are around 552 classes within the standard library. - **Essential Tools**: The presentation highlights several useful components: - **Set**: A data structure that ensures uniqueness and offers quick inclusion checks. - **Enumerable**: An essential module that provides a suite of powerful iteration methods, simplifying operations on collections. - **Lazy Evaluation**: Discussed with examples on how Ruby 1.9 improved lazy enumeration. - **Delegators**: Tools like SimpleDelegator and Forwardable to help optimize code by managing method visibility and delegation efficiently. - **Performance Enhancements**: Huckstep emphasizes the importance of benchmarking to measure the efficiency of code. Tools within the standard library allow for effective benchmarking, aiding in identifying performance bottlenecks. - **Random Number Generation**: The secure random class is presented as a better alternative to standard randomization methods, especially in security contexts. - **Testing with MiniTest**: Ruby includes MiniTest for testing, ensuring developers can validate code with minimal external dependencies. Huckstep concludes by reinforcing that while RubyGems and external packages are valuable, often the standard library contains powerful tools that can suffice for building robust applications without the overhead of additional dependencies. His message encourages programmers to explore and utilize the rich functionalities already provided within Ruby, thus fostering better coding practices and application performance.
Suggest modifications
Cancel