Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Pipe Operator for Ruby by Fabio Akita Elixir is one modern language that is introducing many Rubyists to the world of highly scalable, highly distributed, functional programming-based programming. In a more narrow scope, one language feature that many people liked is the now famous Pipe Operator . There is nothing like this in Ruby. But could there be such an operator? And if it could be done, would it be useful? I started a pet project called Chainable Methods to address just that. Help us caption & translate this video! http://amara.org/v/Prkf/
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 Talk: Pipe Operator for Ruby," Fabio Akita presents a talk at the GoRuCo 2016 event, focusing on the concept of a Pipe Operator in Ruby, inspired by similar operators in functional programming languages like Elixir. **Key Points Discussed:** - **Introduction to Fabio Akita:** Fabio introduces himself as the co-founder of a software outsourcing company in Brazil and the organizer of RubyConf Brazil, emphasizing his experience and connection to the Ruby community. - **Understanding the Pipe Operator:** Akita explains the Pipe Operator as used in Elixir, where it allows for clean chaining of functions without relying on dot notation commonly used in Ruby. It simplifies code readability and maintainability. - **Comparison with Other Languages:** The speaker notes that languages such as F#, Haskell, and others have similar constructs, leading Ruby developers to experience ‘feature envy’ for this cleaner syntax. - **Linux Shell Example:** Akita uses an example from bash programming, demonstrating how pipelines can facilitate clear command processing through commands like `netstat`. He illustrates the straightforward data manipulation possible through command chaining in a shell environment. - **Prototype in Elixir vs. Ruby:** He discusses how coding elegantly in Elixir can raise questions about reproducing similar functionality in Ruby, suggesting that Ruby developers often encounter challenges due to temporary variable usage, leading to cluttered code. - **Introducing Chainable Methods:** To address these issues in Ruby, Akita proposes the creation of a gem called `chainable_methods`. This framework allows developers to chain methods together directly, avoiding messy middle steps and enhancing code clarity. - **Benefits of the Approach:** This methodology encourages the chaining of transformations on data, therefore minimizing the number of temporary variables and emphasizing a streamlined code flow. - **Future Exploration:** At the end of the presentation, attendees can look forward to a demonstration of a Crystal version of the chainable methods, broadening the understanding of this concept across different programming languages. **Conclusion:** Akita hopes to inspire Ruby developers to leverage the notion of chaining methods, leading to clearer code and more efficient workflows. His presentation emphasizes the importance of evaluating and refactoring code to incorporate elegance and maintainability with less complexity for end users.
Suggest modifications
Cancel