Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
This video was recorded on http://wrocloverb.com. You should follow us at https://twitter.com/wrocloverb. See you next year! Piotr Solnica with MICRO LIBRARIES FTW I'm dreaming about a ruby ecosystem that consists of plenty of awesome, kick-ass, small, focused, well-written, nicely documented, composable libraries. Micro-libraries. I want those libraries to work on all major ruby implementations. I want those libraries to use as little magic and monkey-patching as possible. I want to be able to compose bigger frameworks using those libraries. In this talk I will tell you WHY I want all those things and HOW we could achieve that.
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 video titled "Micro Libraries FTW," Piotr Solnica discusses the concept of micro libraries within the Ruby programming ecosystem. The speaker expresses a vision for a Ruby ecosystem composed of numerous small, focused, and well-documented libraries that can work together seamlessly. This talk, presented at wroc_love.rb 2014, aims to explain the benefits of micro libraries in contrast to larger libraries, as well as introduce a new initiative called micro.rb. **Key Points Discussed:** - **Differences between Big Libraries and Micro Libraries:** - Big libraries address multiple problems and have complex, broad interfaces, while micro libraries focus on solving specific problems with narrow, intuitive interfaces. - Micro libraries generally have less code and less frequent changes compared to their larger counterparts. - **Impact of Ruby on Rails:** - Rails has popularized larger libraries and extensive monkey patching, which can create a tendency for developers to build complex libraries rather than focused, small ones. - **Advocacy for the UNIX Philosophy:** - Solnica encourages adopting the UNIX philosophy, which promotes simple tools that can be combined to create powerful solutions, highlighting a missed opportunity for creating more micro libraries. - **Use Cases for Micro Libraries:** - Micro libraries are beneficial when extracting complex functionality for reuse, generalizing repeated patterns, or addressing very specific problems in a focused manner. - **Frameworks Built on Micro Libraries:** - Solnica asserts that frameworks should be constructed using micro libraries, emphasizing a top-down approach to maintain clean architecture while avoiding dependency conflicts. - **Challenges with Dependencies:** - Issues can arise with dependency management in Ruby due to slow installation and conflicts when using multiple libraries. Proper semantic versioning and documentation are crucial to mitigate these challenges. - **Examples of Micro Libraries:** - The talk references several existing micro libraries, such as Equalizer and Anima, showcasing how they work together smoothly to provide functionality without added complexity. - **Introduction of Micro.rb:** - The new project micro.rb aims to compile focused libraries meeting specific criteria, facilitating users in finding stable, production-ready libraries and connecting with maintainers. **Conclusion:** - Piotr Solnica concludes that the development of micro libraries is essential for establishing a rich Ruby ecosystem. He believes that frameworks built upon these libraries can lead to simpler, more efficient, and maintainable codebases, urging developers to embrace this approach for enhanced clarity and functionality in their projects.
Suggest modifications
Cancel